Skip to content

Remove redundant snippets #2062

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

Merged
merged 3 commits into from
Jul 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 7 additions & 28 deletions snippets/PowerShell.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,32 +512,11 @@
],
"description": "Enum definition snippet"
},
"Cmdlet": {
"prefix": "cmdlet",
"body": [
"function ${1:Verb-Noun} {",
"\t[CmdletBinding()]",
"\tparam (",
"\t\t$0",
"\t)",
"\t",
"\tbegin {",
"\t\t",
"\t}",
"\t",
"\tprocess {",
"\t\t$TM_SELECTED_TEXT",
"\t}",
"\t",
"\tend {",
"\t\t",
"\t}",
"}"
],
"description": "Script cmdlet definition snippet"
},
"Function-Advanced": {
"prefix": "function-advanced",
"prefix": [
"function-advanced",
"cmdlet"
],
"body": [
"function ${1:Verb-Noun} {",
"\t[CmdletBinding()]",
Expand All @@ -560,7 +539,7 @@
],
"description": "Script advanced function definition snippet"
},
"Cmdlet-Comment-Help": {
"Comment-Help": {
"prefix": "comment-help",
"body": [
"<#",
Expand All @@ -579,7 +558,7 @@
"\tGeneral notes",
"#>"
],
"description": "Comment-based help snippet"
"description": "Comment-based help for an advanced function snippet"
},
"Parameter": {
"prefix": "parameter",
Expand Down Expand Up @@ -931,7 +910,7 @@
"body": [
"[Diagnostics.CodeAnalysis.SuppressMessageAttribute('${1:PSProvideDefaultParameterValue}', '', Scope='Function', Target='${2:*}')]"
]
},
},
"PSCustomObject": {
"prefix": "PSCustomObject",
"body": [
Expand Down