-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathpackage.json
341 lines (341 loc) · 10.9 KB
/
package.json
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
{
"private": true,
"preview": true,
"name": "vue-language-features",
"publisher": "znck",
"displayName": "VueDX",
"version": "0.12.0",
"description": "Advanced TypeScript/JavaScript support for Vue",
"icon": "logo.png",
"main": "dist/index.js",
"browser": "dist/index.js",
"activationEvents": [
"onLanguage:vue",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onCommand:vuedx.openVirtualFile"
],
"files": [
"dist"
],
"buildConfig": {
"useMain": false,
"sources": {
"src/index.ts": [
{
"format": "esm",
"file": "dist/index.js",
"bundle": {
"format": "cjs",
"platform": "node",
"external": [
"vscode",
"@vuedx/typescript-plugin-vue"
]
}
}
]
},
"external": [
"vscode"
]
},
"repository": {
"type": "git",
"url": "https://github.com/znck/vue-developer-experience",
"directory": "extensions/vscode-vue-language-features"
},
"keywords": [
"vue",
"typescript"
],
"author": "Rahul Kadyan <[email protected]> (https://znck.me/)",
"license": "MIT",
"engines": {
"vscode": "^1.67.0"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
"id": "jsonc",
"filenames": [
"vueconfig.json"
]
}
],
"commands": [
{
"command": "vuedx.openVirtualFile",
"title": "Vue: Show virtual file",
"enablement": "vuedx.debug && resourceLangId == vue"
}
],
"configuration": {
"title": "VueDX",
"properties": {
"vuedx.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable VueDX extension",
"scope": "machine-overridable"
},
"vuedx.telemetry": {
"type": "boolean",
"default": false,
"description": "Enable/disable telemetry.",
"scope": "machine-overridable"
},
"vuedx.suggest.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled/disable autocomplete suggestions.",
"scope": "language-overridable"
},
"vuedx.implementationsCodeLens.enabled": {
"type": "boolean",
"default": true,
"description": "Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface.",
"scope": "window"
},
"vuedx.referencesCodeLens.showOnAllFunctions": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens on all functions in Vue files.",
"scope": "window"
},
"vuedx.referencesCodeLens.enabled": {
"type": "boolean",
"default": false,
"description": "Enable/disable references CodeLens in Vue files.",
"scope": "window"
},
"vuedx.format.enable": {
"type": "boolean",
"default": false,
"description": "Enable/disable default Vue formatter.",
"scope": "window"
},
"vuedx.inlayHints.parameterNames.enabled": {
"type": "string",
"enum": [
"none",
"literals",
"all"
],
"enumDescriptions": [
"Disable parameter name hints.",
"Enable parameter name hints only for literal arguments.",
"Enable parameter name hints for literal and non-literal arguments."
],
"default": "none",
"markdownDescription": "Enable/disable inlay hints for parameter names:\n```typescript\n\nparseInt(/* str: */ '123', /* radix: */ 8)\n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.inlayHints.parameterNames.suppressWhenArgumentMatchesName": {
"type": "boolean",
"default": false,
"markdownDeprecationMessage": "Suppress parameter name hints on arguments whose text is identical to the parameter name.",
"scope": "resource"
},
"vuedx.inlayHints.parameterTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable inlay hints for implicit parameter types:\n```typescript\n\nel.addEventListener('click', e /* :MouseEvent */ => ...)\n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.inlayHints.variableTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable inlay hints for implicit variable types:\n```typescript\n\nconst foo /* :number */ = Date.now();\n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.inlayHints.propertyDeclarationTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable inlay hints for implicit types on property declarations:\n```typescript\n\nclass Foo {\n\tprop /* :number */ = Date.now();\n}\n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.inlayHints.functionLikeReturnTypes.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable inlay hints for implicit return types on function signatures:\n```typescript\n\nfunction foo() /* :number */ {\n\treturn Date.now();\n} \n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.inlayHints.enumMemberValues.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable inlay hints for member values in enum declarations:\n```typescript\n\nenum MyValue {\n\tA /* = 0 */;\n\tB /* = 1 */;\n}\n \n```\nRequires using TypeScript 4.4+ in the workspace.",
"scope": "resource"
},
"vuedx.suggest.completeJSDocs": {
"type": "boolean",
"default": true,
"description": "Enable/disable suggestion to complete JSDoc comments.",
"scope": "language-overridable"
},
"vuedx.autoClosingTags": {
"type": "boolean",
"default": true,
"description": "Enable/disable autoclosing of HTML tags in <template> block and top-level block tags.",
"scope": "language-overridable"
},
"vuedx.debug": {
"type": "boolean",
"default": false,
"description": "Enable/disable VueDX extension debug mode",
"scope": "machine-overridable"
},
"vuedx.debugSourceMaps": {
"type": "boolean",
"default": false,
"description": "Enable/disable sourcemaps in virtual files (debug mode)",
"scope": "machine-overridable"
},
"vuedx.preferences.template.directiveSyntax": {
"enum": [
"shorthand",
"langhand"
],
"default": "shorthand",
"scope": "resource"
},
"vuedx.preferences.template.propCase": {
"enum": [
"kebab",
"camel"
],
"default": "camel",
"scope": "resource"
},
"vuedx.preferences.template.tagCase": {
"enum": [
"kebab",
"pascal",
"auto"
],
"default": "auto",
"scope": "resource"
},
"vuedx.preferences.style.language": {
"enum": [
"css",
"scss",
"less"
],
"default": "css",
"scope": "resource"
},
"vuedx.preferences.script.language": {
"enum": [
"js",
"ts",
"jsx",
"tsx"
],
"default": "js",
"scope": "resource"
},
"vuedx.preferences.script.mode": {
"enum": [
"setup",
"normal"
],
"default": "setup",
"scope": "resource"
},
"vuedx.checkForExtensionConflicts": {
"type": "boolean",
"default": true,
"description": "Check if conflicting extension (volar, vetur etc.) are active.",
"scope": "machine-overridable"
},
"vuedx.ignoreDiagnosticsPattrens": {
"type": "array",
"default": [],
"description": "Ignore diagnostics in these files.",
"scope": "machine-overridable"
}
}
},
"menus": {
"commandPalette": [
{
"command": "vuedx.openVirtualFile",
"when": "vuedx.debug && editorLangId == vue"
},
{
"command": "typescript.reloadProjects",
"when": "editorLangId == vue"
},
{
"command": "typescript.goToProjectConfig",
"when": "editorLangId == vue"
},
{
"command": "typescript.selectTypeScriptVersion",
"when": "editorLangId == vue"
},
{
"command": "typescript.openTsServerLog",
"when": "editorLangId == vue"
},
{
"command": "typescript.restartTsServer",
"when": "editorLangId == vue"
}
]
},
"jsonValidation": [
{
"fileMatch": "vueconfig.json",
"url": "https://raw.githubusercontent.com/znck/vue-developer-experience/main/packages/projectconfig/schema.json"
}
],
"typescriptServerPlugins": [
{
"name": "@vuedx/typescript-plugin-vue",
"enableForWorkspaceTypeScriptVersions": true,
"configNamespace": "vuedx",
"languages": [
"vue"
]
}
]
},
"extensionDependencies": [
"znck.vue",
"vscode.typescript-language-features"
],
"bugs": {
"url": "https://github.com/znck/vue-developer-experience/issues"
},
"homepage": "https://github.com/znck/vue-developer-experience/blob/main/extensions/vscode#readme",
"dependencies": {
"@vuedx/shared": "workspace:*",
"@vuedx/typescript-plugin-vue": "workspace:*",
"@vuedx/vue-language-server": "workspace:*",
"@vuedx/vue-virtual-textdocument": "workspace:*",
"fast-glob": "^3.2.4",
"inversify": "^5.0.1",
"json5": "^2.1.3",
"node-ipc": "10.1.0",
"reflect-metadata": "^0.1.13",
"vscode-languageclient": "^8.0.2"
},
"devDependencies": {
"@types/node": "^10.12.0",
"@types/vscode": "^1.67.0",
"typescript": "^4.6.3",
"vsce": "2.6.7"
},
"scripts": {
"build": "node scripts/build.mjs",
"release": "vsce publish -p ${VSCODE_MARKETPLACE_TOKEN} --packagePath vue-language-features.vsix",
"pre-release": "vsce publish --pre-release -p ${VSCODE_MARKETPLACE_TOKEN} --packagePath vue-language-features.vsix"
}
}