forked from coc-extensions/coc-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
367 lines (367 loc) · 17.8 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
{
"name": "coc-svelte",
"version": "0.4.0",
"description": "Svelte language support for coc.nim",
"main": "lib/src/extension.js",
"scripts": {
"clean": "rimraf lib",
"build": "tsc -p ./",
"watch": "tsc -w -p ./",
"prepare": "npm-run-all clean build"
},
"repository": {
"type": "git",
"url": "https://github.com/coc-extensions/coc-svelte.git"
},
"keywords": [
"svelte",
"coc.nvim"
],
"author": "iamcco <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/coc-extensions/coc-svelte/issues"
},
"homepage": "https://github.com/coc-extensions/coc-svelte#readme",
"engines": {
"coc": "^0.0.77"
},
"activationEvents": [
"onLanguage:svelte",
"onCommand:svelte.restartLanguageServer"
],
"contributes": {
"typescriptServerPlugins-disabled": [
{
"name": "typescript-svelte-plugin",
"enableForWorkspaceTypeScriptVersions": true
}
],
"configuration": {
"type": "object",
"title": "Svelte",
"properties": {
"svelte.enable-ts-plugin": {
"type": "boolean",
"default": false,
"title": "Enable TypeScript Svelte plugin",
"description": "Enable semantic tokens (semantic highlight) for TypeScript."
},
"svelte.ask-to-enable-ts-plugin": {
"type": "boolean",
"default": true,
"title": "Ask to enable TypeScript Svelte plugin",
"description": "Ask on startup to enable the TypeScript plugin."
},
"svelte.language-server.runtime": {
"scope": "application",
"type": "string",
"title": "Language Server Runtime",
"description": "- You normally don't need this - Path to the node executable to use to spawn the language server. This is useful when you depend on native modules such as node-sass as without this they will run in the context of vscode, meaning node version mismatch is likely. Minimum required node version is 12.17. This setting can only be changed in user settings for security reasons."
},
"svelte.language-server.ls-path": {
"scope": "application",
"type": "string",
"title": "Language Server Path",
"description": "- You normally don't set this - Path to the language server executable. If you installed the \"svelte-language-server\" npm package, it's within there at \"bin/server.js\". Path can be either relative to your workspace root or absolute. Set this only if you want to use a custom version of the language server. This setting can only be changed in user settings for security reasons."
},
"svelte.language-server.port": {
"type": "number",
"title": "Language Server Port",
"description": "- You normally don't set this - At which port to spawn the language server. Can be used for attaching to the process for debugging / profiling. If you experience crashes due to \"port already in use\", try setting the port. -1 = default port is used.",
"default": -1
},
"svelte.plugin.typescript.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript",
"description": "Enable the TypeScript plugin"
},
"svelte.plugin.typescript.findReferences.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Find References",
"description": "Enable find-references for TypeScript"
},
"svelte.plugin.typescript.diagnostics.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Diagnostics",
"description": "Enable diagnostic messages for TypeScript"
},
"svelte.plugin.typescript.hover.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Hover Info",
"description": "Enable hover info for TypeScript"
},
"svelte.plugin.typescript.documentSymbols.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Symbols in Outline",
"description": "Enable document symbols for TypeScript"
},
"svelte.plugin.typescript.completions.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Completions",
"description": "Enable completions for TypeScript"
},
"svelte.plugin.typescript.definitions.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Go to Definition",
"description": "Enable go to definition for TypeScript"
},
"svelte.plugin.typescript.selectionRange.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Selection Range",
"description": "Enable selection range for TypeScript"
},
"svelte.plugin.typescript.signatureHelp.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Signature Help",
"description": "Enable signature help (parameter hints) for TypeScript"
},
"svelte.plugin.typescript.rename.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Rename",
"description": "Enable rename functionality for JS/TS variables inside Svelte files"
},
"svelte.plugin.typescript.codeActions.enable": {
"type": "boolean",
"default": true,
"title": "TypeScript: Code Actions",
"description": "Enable code actions for TypeScript"
},
"svelte.plugin.css.enable": {
"type": "boolean",
"default": true,
"title": "CSS",
"description": "Enable the CSS plugin"
},
"svelte.plugin.css.globals": {
"type": "string",
"default": "",
"title": "CSS: Global Files",
"description": "Which css files should be checked for global variables (`--global-var: value;`). These variables are added to the css completions. String of comma-separated file paths or globs relative to workspace root."
},
"svelte.plugin.css.diagnostics.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Diagnostics",
"description": "Enable diagnostic messages for CSS"
},
"svelte.plugin.css.hover.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Hover Info",
"description": "Enable hover info for CSS"
},
"svelte.plugin.css.completions.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Auto Complete",
"description": "Enable auto completions for CSS"
},
"svelte.plugin.css.documentColors.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Document Colors",
"description": "Enable document colors for CSS"
},
"svelte.plugin.css.colorPresentations.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Color Picker",
"description": "Enable color picker for CSS"
},
"svelte.plugin.css.documentSymbols.enable": {
"type": "boolean",
"default": true,
"title": "CSS: Symbols in Outline",
"description": "Enable document symbols for CSS"
},
"svelte.plugin.css.selectionRange.enable": {
"type": "boolean",
"default": true,
"title": "CSS: SelectionRange",
"description": "Enable selection range for CSS"
},
"svelte.plugin.html.enable": {
"type": "boolean",
"default": true,
"title": "HTML",
"description": "Enable the HTML plugin"
},
"svelte.plugin.html.hover.enable": {
"type": "boolean",
"default": true,
"title": "HTML: Hover Info",
"description": "Enable hover info for HTML"
},
"svelte.plugin.html.completions.enable": {
"type": "boolean",
"default": true,
"title": "HTML: Auto Complete",
"description": "Enable auto completions for HTML"
},
"svelte.plugin.html.tagComplete.enable": {
"type": "boolean",
"default": true,
"title": "HTML: Tag Auto Closing",
"description": "Enable HTML tag auto closing"
},
"svelte.plugin.html.documentSymbols.enable": {
"type": "boolean",
"default": true,
"title": "HTML: Symbols in Outline",
"description": "Enable document symbols for HTML"
},
"svelte.plugin.svelte.enable": {
"type": "boolean",
"default": true,
"title": "Svelte",
"description": "Enable the Svelte plugin"
},
"svelte.plugin.svelte.diagnostics.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Diagnostics",
"description": "Enable diagnostic messages for Svelte"
},
"svelte.plugin.svelte.compilerWarnings": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"ignore",
"error"
]
},
"default": {},
"title": "Svelte: Compiler Warnings Settings",
"description": "Svelte compiler warning codes to ignore or to treat as errors. Example: { 'css-unused-selector': 'ignore', 'unused-export-let': 'error'}"
},
"svelte.plugin.svelte.format.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Format",
"description": "Enable formatting for Svelte (includes css & js). You can set some formatting options through this extension. They will be ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.svelteSortOrder": {
"type": "string",
"default": "options-scripts-markup-styles",
"title": "Svelte Format: Sort Order",
"description": "Format: join the keys `options`, `scripts`, `markup`, `styles` with a - in the order you want. This option is ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.svelteStrictMode": {
"type": "boolean",
"default": false,
"title": "Svelte Format: Strict Mode",
"description": "More strict HTML syntax. This option is ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.svelteAllowShorthand": {
"type": "boolean",
"default": true,
"title": "Svelte Format: Allow Shorthand",
"description": "Option to enable/disable component attribute shorthand if attribute name and expression are the same. This option is ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.svelteBracketNewLine": {
"type": "boolean",
"default": true,
"title": "Svelte Format: Bracket New Line",
"description": "Put the `>` of a multiline element on a new line. This option is ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.svelteIndentScriptAndStyle": {
"type": "boolean",
"default": true,
"title": "Svelte Format: Indent Script And Style",
"description": "Whether or not to indent code inside `<script>` and `<style>` tags. This option is ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.printWidth": {
"type": "number",
"default": 80,
"title": "Svelte Format: Print Width",
"description": "Maximum line width after which code is tried to be broken up. This is a Prettier core option. If you have the Prettier extension installed, this option is ignored and the corresponding option of that extension is used instead. This option is also ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.format.config.singleQuote": {
"type": "boolean",
"default": false,
"title": "Svelte Format: Quotes",
"description": "Use single quotes instead of double quotes, where possible. This is a Prettier core option. If you have the Prettier extension installed, this option is ignored and the corresponding option of that extension is used instead. This option is also ignored if there's any kind of configuration file, for example a `.prettierrc` file."
},
"svelte.plugin.svelte.completions.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Completions",
"description": "Enable auto completions for Svelte"
},
"svelte.plugin.svelte.hover.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Hover",
"description": "Enable hover information for Svelte"
},
"svelte.plugin.svelte.codeActions.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Code Actions",
"description": "Enable Code Actions for Svelte"
},
"svelte.plugin.svelte.selectionRange.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Selection Range",
"description": "Enable selection range for Svelte"
},
"svelte.plugin.svelte.rename.enable": {
"type": "boolean",
"default": true,
"title": "Svelte: Rename",
"description": "Enable rename/move Svelte files functionality"
}
}
},
"jsonValidation": [
{
"fileMatch": ".prettierrc",
"url": "./prettier-options-schema.json"
},
{
"fileMatch": ".prettierrc.json",
"url": "./prettier-options-schema.json"
}
],
"commands": [
{
"command": "svelte.restartLanguageServer",
"title": "Svelte: Restart Language Server"
}
],
"breakpoints": [
{
"language": "svelte"
}
]
},
"dependencies": {
"lodash": "^4.17.21",
"svelte-language-server": "^0.14.8",
"typescript": "^4.4.3",
"typescript-svelte-plugin": "^0.2.4",
"vscode-languageserver-protocol": "^3.15.3"
},
"devDependencies": {
"@tsconfig/node12": "^1.0.0",
"@types/lodash": "^4.14.172",
"@types/node": "^14.0.1",
"coc.nvim": "^0.0.80",
"js-yaml": "^3.14.0",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2"
}
}