-
Notifications
You must be signed in to change notification settings - Fork 513
Add an extended Snippet for Advanced Functions fixes #5197 #5203
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Godo work on the snippet, I'm not quite sure how useful this is though, maybe it should be renamed Function-Advanced-Doc-Full-Example
to indicate it is an example for all the potential options? I personally would never use this, it would take me just as long to clean it up as it would to just write it naked with intellisense :)
"\t\t\tPosition = 0,", | ||
"\t\t\tParameterSetName = 'Parameter Set 1')]", | ||
"\t\t[ValidateNotNull()]", | ||
"\t\t[ValidateNotNullOrEmpty()]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these two attributes overlapping? Or are you trying to have a snippet that shows all possible options?
@JustinGrote this was a C&P from the one in ISE with very minor edits |
I'll merge it either way, but good to make it as useful as possible yeah? |
PR Summary
fixes #5197
Added snippet from ISE with minor edits
Adding based on this comment on bsky
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.WIP:
to the beginning of the title and remove the prefix when the PR is ready