Skip to content

Commit ea3ffe8

Browse files
committed
Apply Prettier Formatting
1 parent 320d729 commit ea3ffe8

File tree

1 file changed

+8
-36
lines changed

1 file changed

+8
-36
lines changed

snippets/PowerShell.json

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,7 @@
240240
]
241241
},
242242
"Function-Advanced-Doc-Full-Example-From-ISE": {
243-
"prefix": [
244-
"function-advanced-doc-fromISE",
245-
"cmdlet-doc-fromISE"
246-
],
243+
"prefix": ["function-advanced-doc-fromISE", "cmdlet-doc-fromISE"],
247244
"description": "Script advanced function definition with full comment-based help and parameter attributes.",
248245
"body": [
249246
"function ${1:Verb-Noun} {",
@@ -347,10 +344,7 @@
347344
]
348345
},
349346
"Function: Suppress PSScriptAnalyzer Rule": {
350-
"prefix": [
351-
"suppress-message-rule-function",
352-
"[SuppressMessageAttribute]"
353-
],
347+
"prefix": ["suppress-message-rule-function", "[SuppressMessageAttribute]"],
354348
"description": "Suppress a PSScriptAnalyzer rule for a function. More: https://docs.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/overview?view=ps-modules#suppressing-rules",
355349
"body": [
356350
"[Diagnostics.CodeAnalysis.SuppressMessageAttribute(",
@@ -363,44 +357,22 @@
363357
"Hashtable": {
364358
"prefix": "hashtable",
365359
"description": "A key/value store that are very efficient for finding and retrieving data. More: Get-Help about_Hash_Tables",
366-
"body": [
367-
"\\$${1:Var} = @{",
368-
"\t${2:Name} = ${3:Value}",
369-
"}"
370-
]
360+
"body": ["\\$${1:Var} = @{", "\t${2:Name} = ${3:Value}", "}"]
371361
},
372362
"Here-String": {
373-
"prefix": [
374-
"hs",
375-
"here-string"
376-
],
363+
"prefix": ["hs", "here-string"],
377364
"description": "Escape all text but evaluate variables. More: Get-Help about_Quoting_Rules",
378-
"body": [
379-
"@\"",
380-
"${0:TM_SELECTED_TEXT}",
381-
"\"@",
382-
""
383-
]
365+
"body": ["@\"", "${0:TM_SELECTED_TEXT}", "\"@", ""]
384366
},
385367
"Here-String (Literal)": {
386-
"prefix": [
387-
"hsl",
388-
"literal-here-string"
389-
],
368+
"prefix": ["hsl", "literal-here-string"],
390369
"description": "Escape all text literally. More: Get-Help about_Quoting_Rules",
391-
"body": [
392-
"@'",
393-
"${0:TM_SELECTED_TEXT}",
394-
"'@",
395-
""
396-
]
370+
"body": ["@'", "${0:TM_SELECTED_TEXT}", "'@", ""]
397371
},
398372
"Hidden Property": {
399373
"prefix": "class-proph-hidden",
400374
"description": "Useful for creating internal properties and methods within a class that are hidden from users. More: Get-Help about_Hidden",
401-
"body": [
402-
"hidden [${1:string}] $${0:PropertyName}"
403-
]
375+
"body": ["hidden [${1:string}] $${0:PropertyName}"]
404376
},
405377
"IArgumentCompleter Class": {
406378
"prefix": "iargument-completer",

0 commit comments

Comments
 (0)