Skip to content

Fix #1177 - Added function-advanced snippet #1182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Benny1007
Copy link
Contributor

Added a function-advanced snippet based on the existing cmdlet snippet.

Leaves option to have more basic 'function' snippet based on the ISE 'function' snippet if required.

First PR, so grateful for further guidance.

@msftclas
Copy link

msftclas commented Feb 1, 2018

CLA assistant check
All CLA requirements met.

@timoline
Copy link

timoline commented Feb 2, 2018

only renaming cmdlet and ex-cmdlet would fix this thing, or am I wrong?

@rkeithhill
Copy link
Contributor

This is practically identical to the existing cmdlet snippet. A number of the existing snippet names (including cmdlet) where taken from the ISE snippets.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for contributing!

I opened an issue on vscode to support an array of prefixes so that we don't need two snippets:
microsoft/vscode#42838

but we wont block this PR on that.

@TylerLeonhardt TylerLeonhardt merged commit daef966 into PowerShell:master Feb 7, 2018
@TylerLeonhardt
Copy link
Member

Merged! Congrats on your 1st contribution @Benny1007!

@timoline
Copy link

timoline commented Sep 23, 2018

microsoft/vscode#42838 is added,

snippits can be merged now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants