|
2 | 2 | "scope": "source.powershell", |
3 | 3 |
|
4 | 4 | "completions": [ |
5 | | - { "trigger": "dict\thashtable", "contents": "@{$1$0}" }, |
6 | | - { "trigger": "arr\tarray", "contents": "@($0)" }, |
7 | | - { "trigger": "req\trequires", "contents": "#requires -$0" }, |
8 | | - { "trigger": "reqp\trequires", "contents": "#requires -pssnapin $0" }, |
9 | | - { "trigger": "reqv\trequires", "contents": "#requires -version ${0:2}" }, |
10 | | - { "trigger": "void", "contents": "[void] ($1)$0" }, |
11 | | - { "trigger": "sb", "contents": "\\${$1}$0" }, |
12 | | - { "trigger": "wd\twrite-debug", "contents": "write-debug -message \"$1\"$0" }, |
13 | | - { "trigger": "wh\twrite-host", "contents": "write-host \"$1\"" }, |
14 | | - { "trigger": "ww\twrite-warning", "contents": "write-warning $0" }, |
15 | | - { "trigger": "param", "contents": "param(\\$${1:paramName})" } |
16 | | - ] |
| 5 | + { |
| 6 | + "trigger": "dict", |
| 7 | + "contents": "@{$1$0}", |
| 8 | + "annotation": "hashtable", |
| 9 | + "kind": "snippet", |
| 10 | + }, |
| 11 | + { |
| 12 | + "trigger": "arr", |
| 13 | + "contents": "@($0)", |
| 14 | + "annotation": "array", |
| 15 | + "kind": "snippet", |
| 16 | + }, |
| 17 | + { |
| 18 | + "trigger": "req", |
| 19 | + "contents": "#requires -$0", |
| 20 | + "annotation": "requires", |
| 21 | + "kind": "snippet", |
| 22 | + }, |
| 23 | + { |
| 24 | + "trigger": "reqp", |
| 25 | + "contents": "#requires -pssnapin $0", |
| 26 | + "annotation": "requires", |
| 27 | + "kind": "snippet", |
| 28 | + }, |
| 29 | + { |
| 30 | + "trigger": "reqv", |
| 31 | + "contents": "#requires -version ${0:2}", |
| 32 | + "annotation": "requires", |
| 33 | + "kind": "snippet", |
| 34 | + }, |
| 35 | + { |
| 36 | + "trigger": "void", |
| 37 | + "contents": "[void] ($1)$0", |
| 38 | + "kind": "snippet", |
| 39 | + }, |
| 40 | + { |
| 41 | + "trigger": "sb", |
| 42 | + "contents": "\\${$1}$0", |
| 43 | + "kind": "snippet", |
| 44 | + }, |
| 45 | + { |
| 46 | + "trigger": "wd", |
| 47 | + "contents": "write-debug -message \"$1\"$0", |
| 48 | + "annotation": "write-debug", |
| 49 | + "kind": "snippet", |
| 50 | + }, |
| 51 | + { |
| 52 | + "trigger": "wh", |
| 53 | + "contents": "write-host \"$1\"", |
| 54 | + "annotation": "write-host", |
| 55 | + "kind": "snippet", |
| 56 | + }, |
| 57 | + { |
| 58 | + "trigger": "ww", |
| 59 | + "contents": "write-warning $0", |
| 60 | + "annotation": "write-warning", |
| 61 | + "kind": "snippet", |
| 62 | + }, |
| 63 | + { |
| 64 | + "trigger": "param", |
| 65 | + "contents": "param(\\$${1:paramName})", |
| 66 | + "kind": "snippet", |
| 67 | + }, |
| 68 | + ], |
17 | 69 | } |
0 commit comments