-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpackage.json
More file actions
202 lines (202 loc) · 6.09 KB
/
package.json
File metadata and controls
202 lines (202 loc) · 6.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "vscode-postfix-ts",
"displayName": "TS/JS postfix completion",
"description": "Postfix templates for TypeScript/Javascript",
"version": "1.13.2",
"license": "MIT",
"publisher": "ipatalas",
"engines": {
"vscode": "^1.60.0"
},
"icon": "images/logo.png",
"categories": [
"Snippets",
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/ipatalas/vscode-postfix-ts"
},
"bugs": {
"url": "https://github.com/ipatalas/vscode-postfix-ts/issues"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onLanguage:vue",
"onLanguage:html",
"onLanguage:svelte",
"workspaceContains:.enable-postfix"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"title": "Postfix completion",
"properties": {
"postfix.languages": {
"type": "array",
"description": "A list of languages in which the completion will be available",
"default": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue",
"svelte",
"html"
]
},
"postfix.undefinedMode": {
"type": "string",
"markdownDescription": "Determines how the `.undefined` and `.notundefined` templates work",
"default": "Equal",
"enum": [
"Equal",
"Typeof"
],
"enumDescriptions": [
"if (expr === undefined)",
"if (typeof expr === \"undefined\")"
]
},
"postfix.snippetPreviewMode": {
"type": "string",
"enum": [
"raw",
"inserted"
],
"default": "inserted",
"markdownEnumDescriptions": [
"Raw snippet as you defined in settings.json",
"The inserted text variant"
]
},
"postfix.customTemplates": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"body"
],
"defaultSnippets": [
{
"label": "New postfix",
"body": {
"name": "$1",
"body": "$2",
"when": [
"$3"
]
}
}
],
"properties": {
"name": {
"type": "string",
"suggestSortText": "0",
"description": "Name of the template. It will be used in auto-complete suggestions"
},
"description": {
"type": "string",
"description": "Description of the template. It will be used in auto-complete suggestions"
},
"body": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "Body of the template. `{{expr}}` will be replaced with the expression before the cursor"
},
"when": {
"type": "array",
"description": "Context in which the template should be suggested",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"identifier",
"expression",
"binary-expression",
"unary-expression",
"function-call",
"new-expression",
"string-literal",
"type"
]
}
}
}
}
},
"postfix.customTemplate.mergeMode": {
"type": "string",
"markdownDescription": "Determines how custom templates are shown if they share a name with built-in template:\n`append` - both built-in and custom template will be shown\n`override` - only custom template will be shown (it overrides built-in one)",
"default": "append",
"enum": [
"append",
"override"
]
},
"postfix.inferVariableName": {
"type": "boolean",
"markdownDescription": "Try to guess variable names for `var`, `let`, `const`, `forEach` and `forof` templates.",
"default": true
},
"postfix.disabledBuiltinTemplates": {
"type": "array",
"markdownDescription": "Name all built-in templates that you want to disable, eg. `forof`",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": []
}
}
}
},
"scripts": {
"vscode:prepublish": "node build.mjs --production",
"compile": "node build.mjs",
"pretest": "node tasks.mjs pretest && tsc -p ./",
"test": "cross-env NODE_ENV=test node ./out/test/runTests.js",
"test-with-coverage": "c8 npm test",
"lint": "eslint .",
"package": "vsce package --no-dependencies",
"deploy": "vsce publish"
},
"devDependencies": {
"@types/lodash": "^4.14.192",
"@types/mocha": "^10.0.1",
"@types/node": "^16.11.7",
"@types/pluralize": "^0.0.29",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vscode/test-electron": "^2.3.0",
"@vscode/vsce": "^2.18.0",
"c8": "^7.13.0",
"cross-env": "^7.0.3",
"esbuild": "^0.17.4",
"eslint": "^8.37.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"source-map-support": "0.5.21"
},
"dependencies": {
"lodash": "^4.17.21",
"pluralize": "github:plurals/pluralize#36f03cd2d573fa6d23e12e1529fa4627e2af74b4",
"typescript": "^5.0.4",
"vscode-html-languageservice": "^5.0.4",
"vscode-snippet-parser": "^0.0.5"
}
}