forked from yaegassy/coc-volar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
472 lines (472 loc) · 14 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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
{
"name": "@yaegassy/coc-volar",
"version": "0.25.8",
"description": "Volar (Fast Vue Language Support) extension for coc.nvim",
"author": "yaegassy <[email protected]>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"volar",
"vue",
"vue3",
"typescript",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-volar"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"schema": "curl -o schemas/vue-tsconfig.schema.json https://raw.githubusercontent.com/johnsoncodehk/volar/master/vue-language-tools/vue-language-core/schemas/vue-tsconfig.schema.json",
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^16.11.65",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.15.10",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"rimraf": "^3.0.2"
},
"activationEvents": [
"onLanguage:vue",
"onLanguage:markdown",
"onLanguage:html",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onCommand:volar.initializeTakeOverMode"
],
"contributes": {
"rootPatterns": [
{
"filetype": "vue",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "typescript",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "javascript",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "typescriptreact",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "javascriptreact",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "html",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
},
{
"filetype": "markdown",
"patterns": [
"vite.config.ts",
"vue.config.js",
"nuxt.config.ts"
]
}
],
"jsonValidation": [
{
"fileMatch": "tsconfig.json",
"url": "./schemas/vue-tsconfig.schema.json"
},
{
"fileMatch": "jsconfig.json",
"url": "./schemas/vue-tsconfig.schema.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "https://json.schemastore.org/tsconfig"
},
{
"fileMatch": "tsconfig.*.json",
"url": "./schemas/vue-tsconfig.schema.json"
},
{
"fileMatch": "jsconfig.*.json",
"url": "https://json.schemastore.org/jsconfig"
},
{
"fileMatch": "jsconfig.*.json",
"url": "./schemas/vue-tsconfig.schema.json"
},
{
"fileMatch": "tsconfig-*.json",
"url": "https://json.schemastore.org/tsconfig"
},
{
"fileMatch": "tsconfig-*.json",
"url": "./schemas/vue-tsconfig.schema.json"
},
{
"fileMatch": "jsconfig-*.json",
"url": "https://json.schemastore.org/jsconfig"
},
{
"fileMatch": "jsconfig-*.json",
"url": "./schemas/vue-tsconfig.schema.json"
}
],
"configuration": {
"type": "object",
"title": "coc-volar configuration",
"properties": {
"volar.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-volar extension."
},
"volar.useWorkspaceTsdk": {
"type": "boolean",
"default": false,
"description": "Use workspace (project) detected tsLibs in volar. if false, use coc-volar's built-in tsLibs."
},
"volar.tsLocale": {
"type": "string",
"enum": [
"cs",
"de",
"es",
"fr",
"it",
"ja",
"ko",
"en",
"pl",
"pt-br",
"ru",
"tr",
"zh-cn",
"zh-tw"
],
"default": "en",
"description": "Sets the locale used to report diagnostics message from typescript."
},
"volar.scaffoldSnippets.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable scaffold snippets completion. Typing `vue` or `vuedc` will output completion suggestions. This snippets completion feature will only work on the first line of the file."
},
"volar.disableDiagnostics": {
"type": "boolean",
"default": false,
"description": "Disable diagnostics from Volar."
},
"volar.disableFormatting": {
"type": "boolean",
"default": false,
"description": "Disable formatting from Volar."
},
"volar.disableProgressNotifications": {
"type": "boolean",
"default": false,
"description": "Disable the initialization and workdone progress notifications."
},
"vue-semantic-server.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the language server."
},
"vue-syntactic-server.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the language server."
},
"volar.vueserver.petiteVue.processHtmlFile": {
"type": "boolean",
"default": false,
"description": "Use `.html` instead of `.vue` for file extension. If you use this setting, it is recommended to enable it at the workspace (project) level. You must also place `tsconfig.json` or `jsconfig.json` in your project."
},
"volar.vueserver.vitePress.processMdFile": {
"type": "boolean",
"default": false,
"description": "Use `.md` instead of `.vue` for file extension. If you use this setting, it is recommended to enable it at the workspace (project) level. You must also place `tsconfig.json` or `jsconfig.json` in your project."
},
"volar.vueserver.textDocumentSync": {
"type": "string",
"default": "incremental",
"enum": [
"incremental",
"full",
"none"
],
"enumDescriptions": [
"Documents are synced by sending the full content on open. After that only incremental updates to the document are send.",
"Documents are synced by always sending the full content of the document.",
"Documents should not be synced at all."
],
"description": "Defines how the host (editor) should sync document changes to the language server. SFC incremental parser only working when config \"incremental\"."
},
"volar.vueserver.maxOldSpaceSize": {
"type": [
"number",
"null"
],
"default": null,
"description": "Set `--max-old-space-size` option on server process. Maximum memory (in MB) that the server should use. On some systems this may only have effect when runtime has been set. Minimum 256"
},
"volar.vueserver.noProjectReferences": {
"type": "boolean",
"default": false,
"description": "Ignore project references settings of tsconfig in language server for resolve volar's issue #1916."
},
"volar.codeLens.references": {
"type": "boolean",
"default": true,
"description": "[references] code lens."
},
"volar.codeLens.pugTools": {
"type": "boolean",
"default": false,
"description": "[pug ☐] code lens."
},
"volar.codeLens.scriptSetupTools": {
"type": "boolean",
"default": false,
"description": "[ref sugar ☐] code lens."
},
"volar.autoWrapParentheses": {
"type": "boolean",
"default": true,
"description": "Auto-wrap `()` to As Expression in interpolations for fix issue #520 of volar."
},
"volar.autoCreateQuotes": {
"type": "boolean",
"default": false,
"description": "Enable/disable auto creation of quotes for HTML attribute assignment."
},
"volar.autoClosingTags": {
"type": "boolean",
"default": false,
"description": "Enable/disable autoClosing of HTML tags."
},
"volar.autoCompleteRefs": {
"type": "boolean",
"default": false,
"description": "Auto-complete Ref value with '.value'."
},
"volar.takeOverMode.enabled": {
"type": "boolean",
"default": false,
"description": "Take over language support for *.ts."
},
"volar.format.initialIndent": {
"type": "object",
"description": "Whether to have initial indent.",
"default": {
"html": true
},
"properties": {
"html": {
"type": "boolean",
"default": true
},
"typescript": {
"type": "boolean",
"default": false
},
"javascript": {
"type": "boolean",
"default": false
},
"typescriptreact": {
"type": "boolean",
"default": false
},
"javascriptreact": {
"type": "boolean",
"default": false
},
"css": {
"type": "boolean",
"default": false
},
"scss": {
"type": "boolean",
"default": false
},
"less": {
"type": "boolean",
"default": false
},
"json": {
"type": "boolean",
"default": false
},
"jsonc": {
"type": "boolean",
"default": false
}
}
},
"volar.completion.preferredTagNameCase": {
"type": "string",
"enum": [
"kebab",
"pascal"
],
"enumDescriptions": [
"<kebab-case>",
"<PascalCase>"
],
"default": "pascal",
"description": "Preferred tag name case."
},
"volar.completion.preferredAttrNameCase": {
"type": "string",
"enum": [
"kebab",
"camel"
],
"enumDescriptions": [
":kebab-case=\"...\"",
":camelCase=\"...\""
],
"default": "kebab",
"description": "Preferred attr name case."
},
"volar.completion.autoImportComponent": {
"type": "boolean",
"default": true,
"description": "Enabled auto-import for component with tag completion."
},
"volar.updateImportsOnFileMove.enabled": {
"type": "boolean",
"default": true,
"description": "Enabled update imports on file move."
},
"volar.diagnostics.delay": {
"type": "number",
"default": 200,
"description": "Delay time for diagnostics."
},
"volar.dev.serverPath": {
"type": "string",
"default": "",
"description": "(For develop and check) Custom path to volar server module, ~ and $HOME, etc. can also be used. If there is no setting, the built-in module will be used "
},
"volar.middleware.provideCodeActions.enable": {
"type": "boolean",
"default": true,
"description": "Enable fix patch for code action issue #112, #134"
},
"vetur.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-vetur extension."
}
}
},
"commands": [
{
"command": "volar.initializeTakeOverMode",
"title": "Enable TakeOverMode in your project",
"category": "Volar"
},
{
"command": "volar.action.doctor",
"title": "Show Doctor info",
"category": "Volar"
},
{
"command": "volar.action.restartServer",
"title": "Restart Vue server",
"category": "Volar"
},
{
"command": "volar.action.reloadProject",
"title": "Reload Project",
"category": "Volar"
},
{
"command": "volar.action.verifyAllScripts",
"title": "Verify All Scripts",
"category": "Volar"
},
{
"command": "volar.action.showVirtualFiles",
"title": "Show Virtual Files (Debug)",
"category": "Volar (Debug)"
},
{
"command": "volar.action.showComponentMeta",
"title": "Show Component Meta",
"category": "Volar"
},
{
"command": "volar.vue.findAllFileReferences",
"title": "Vue: Find File References",
"category": "Volar"
}
]
},
"dependencies": {
"@volar/vue-language-server": "1.0.8",
"typescript": "4.8.4"
}
}