massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-tsserver / package.json
1 {
2   "name": "coc-tsserver",
3   "version": "1.8.6",
4   "description": "tsserver extension for coc.nvim",
5   "main": "lib/index.js",
6   "publisher": "chemzqm",
7   "engines": {
8     "coc": "^0.0.80"
9   },
10   "repository": {
11     "type": "git",
12     "url": "https://github.com/neoclide/coc-tsserver.git"
13   },
14   "keywords": [
15     "coc.nvim",
16     "tsserver",
17     "typescript"
18   ],
19   "scripts": {
20     "prepare": "node esbuild.js"
21   },
22   "activationEvents": [
23     "onLanguage:javascript",
24     "onLanguage:javascriptreact",
25     "onLanguage:javascript.jsx",
26     "onLanguage:typescript",
27     "onLanguage:typescript.tsx",
28     "onLanguage:typescript.jsx",
29     "onLanguage:typescriptreact",
30     "onLanguage:jsx-tags",
31     "onLanguage:jsonc",
32     "onCommand:_typescript.configurePlugin",
33     "onCommand:typescript.reloadProjects",
34     "onCommand:javascript.reloadProjects",
35     "onCommand:javascript.goToProjectConfig",
36     "onCommand:typescript.goToProjectConfig",
37     "onCommand:typescript.openTsServerLog",
38     "onCommand:tsserver.watchBuild"
39   ],
40   "contributes": {
41     "rootPatterns": [
42       {
43         "filetype": "javascript",
44         "patterns": [
45           "package.json",
46           "jsconfig.json"
47         ]
48       },
49       {
50         "filetype": "javascriptreact",
51         "patterns": [
52           "package.json",
53           "jsconfig.json"
54         ]
55       },
56       {
57         "filetype": "typescript",
58         "patterns": [
59           "package.json",
60           "tsconfig.json"
61         ]
62       },
63       {
64         "filetype": "typescriptreact",
65         "patterns": [
66           "package.json",
67           "tsconfig.json"
68         ]
69       }
70     ],
71     "commands": [
72       {
73         "title": "Reload current project",
74         "category": "TSServer",
75         "command": "tsserver.reloadProjects"
76       },
77       {
78         "title": "Open log file of tsserver.",
79         "category": "TSServer",
80         "command": "tsserver.openTsServerLog"
81       },
82       {
83         "title": "Open project config file.",
84         "category": "TSServer",
85         "command": "tsserver.goToProjectConfig"
86       },
87       {
88         "title": "Restart tsserver",
89         "category": "TSServer",
90         "command": "tsserver.restart"
91       },
92       {
93         "title": "Find File References",
94         "category": "TSServer",
95         "command": "tsserver.findAllFileReferences"
96       },
97       {
98         "title": "Run `tsc --watch` for current project by use vim's job feature.",
99         "category": "TSServer",
100         "command": "tsserver.watchBuild"
101       },
102       {
103         "title": "Fix autofixable problems of current document.",
104         "category": "TSServer",
105         "command": "tsserver.executeAutofix"
106       }
107     ],
108     "configuration": {
109       "type": "object",
110       "title": "Tsserver",
111       "properties": {
112         "tsserver.enable": {
113           "type": "boolean",
114           "default": true,
115           "description": "Enable tsserver extension"
116         },
117         "tsserver.tsconfigPath": {
118           "type": "string",
119           "default": "tsconfig.json",
120           "description": "Path to tsconfig file for the `tsserver.watchBuild` command. Defaults to `tsconfig.json`."
121         },
122         "tsserver.locale": {
123           "type": [
124             "string",
125             "null"
126           ],
127           "default": null,
128           "description": "Sets the locale used to report JavaScript and TypeScript errors. Default of `null` uses english."
129         },
130         "tsserver.typingsCacheLocation": {
131           "type": "string",
132           "default": "",
133           "description": "Folder path for cache typings"
134         },
135         "tsserver.formatOnType": {
136           "type": "boolean",
137           "default": true,
138           "description": "Run format on type special characters."
139         },
140         "tsserver.enableJavascript": {
141           "type": "boolean",
142           "default": true,
143           "description": "Use tsserver for javascript files"
144         },
145         "tsserver.ignoreLocalTsserver": {
146           "type": "boolean",
147           "default": false,
148           "description": "Always use tsserver module from tsserver.tsdk or tsserver extension."
149         },
150         "tsserver.maxTsServerMemory": {
151           "type": "number",
152           "default": 0,
153           "description": "Set the maximum amount of memory to allocate to the TypeScript server process"
154         },
155         "tsserver.watchOptions": {
156           "type": "object",
157           "description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
158           "properties": {
159             "watchFile": {
160               "type": "string",
161               "description": "Strategy for how individual files are watched.",
162               "enum": [
163                 "fixedPollingInterval",
164                 "priorityPollingInterval",
165                 "dynamicPriorityPolling",
166                 "useFsEvents",
167                 "useFsEventsOnParentDirectory"
168               ],
169               "default": "useFsEvents"
170             },
171             "watchDirectory": {
172               "type": "string",
173               "description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
174               "enum": [
175                 "fixedPollingInterval",
176                 "dynamicPriorityPolling",
177                 "useFsEvents"
178               ],
179               "default": "useFsEvents"
180             },
181             "fallbackPolling": {
182               "type": "string",
183               "description": "When using file system events, this option specifies the polling strategy that gets used when the system runs out of native file watchers and/or doesn’t support native file watchers.",
184               "enum": [
185                 "fixedPollingInterval",
186                 "priorityPollingInterval",
187                 "dynamicPriorityPolling"
188               ]
189             },
190             "synchronousWatchDirectory": {
191               "type": "boolean",
192               "description": "Disable deferred watching on directories. Deferred watching is useful when lots of file changes might occur at once (e.g. a change in node_modules from running npm install), but you might want to disable it with this flag for some less-common setups."
193             }
194           }
195         },
196         "tsserver.tsdk": {
197           "type": "string",
198           "default": "",
199           "description": "Directory contains tsserver.js,"
200         },
201         "tsserver.npm": {
202           "type": "string",
203           "default": "",
204           "description": "Executable path of npm for download typings"
205         },
206         "tsserver.log": {
207           "type": "string",
208           "default": "off",
209           "enum": [
210             "normal",
211             "terse",
212             "verbose",
213             "off"
214           ],
215           "description": "Log level of tsserver"
216         },
217         "tsserver.trace.server": {
218           "type": "string",
219           "default": "off",
220           "enum": [
221             "off",
222             "messages",
223             "verbose"
224           ],
225           "description": "Trace level of tsserver"
226         },
227         "tsserver.pluginPaths": {
228           "type": "array",
229           "default": [],
230           "items": {
231             "type": "string"
232           },
233           "description": "Folders contains tsserver plugins"
234         },
235         "tsserver.debugPort": {
236           "type": "number",
237           "description": "Debug port number of tsserver"
238         },
239         "tsserver.reportStyleChecksAsWarnings": {
240           "type": "boolean",
241           "default": true
242         },
243         "tsserver.implicitProjectConfig.checkJs": {
244           "type": "boolean",
245           "default": false,
246           "description": "Enable checkJs for implicit project"
247         },
248         "tsserver.implicitProjectConfig.experimentalDecorators": {
249           "type": "boolean",
250           "default": false,
251           "description": "Enable experimentalDecorators for implicit project"
252         },
253         "tsserver.disableAutomaticTypeAcquisition": {
254           "type": "boolean",
255           "default": false,
256           "description": "Disable download of typings"
257         },
258         "tsserver.useBatchedBufferSync": {
259           "type": "boolean",
260           "default": true,
261           "description": "Use batched buffer sync support."
262         },
263         "typescript.showUnused": {
264           "type": "boolean",
265           "default": true,
266           "description": "Show unused variable hint."
267         },
268         "typescript.showDeprecated": {
269           "type": "boolean",
270           "default": true,
271           "description": "Show deprecated variable hint."
272         },
273         "typescript.updateImportsOnFileMove.enable": {
274           "type": "boolean",
275           "default": true,
276           "description": "Enable update imports on file move."
277         },
278         "typescript.implementationsCodeLens.enable": {
279           "type": "boolean",
280           "default": true,
281           "description": "Enable codeLens for implementations"
282         },
283         "typescript.referencesCodeLens.enable": {
284           "type": "boolean",
285           "default": true,
286           "description": "Enable codeLens for references"
287         },
288         "typescript.preferences.importModuleSpecifier": {
289           "type": "string",
290           "default": "shortest",
291           "description": "Preferred path style for auto imports.",
292           "enumDescriptions": [
293             "Prefers a non-relative import only if one is available that has fewer path segments than a relative import",
294             "Prefers a relative path to the imported file location",
295             "Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.",
296             "Prefers a non-relative import only if the relative import path would leave the package or project directory. Requires using TypeScript 4.2+ in the workspace."
297           ],
298           "enum": [
299             "shortest",
300             "relative",
301             "non-relative",
302             "project-relative"
303           ]
304         },
305         "typescript.preferences.importModuleSpecifierEnding": {
306           "type": "string",
307           "enum": [
308             "auto",
309             "minimal",
310             "index",
311             "js"
312           ],
313           "default": "auto",
314           "description": "Preferred path ending for auto imports.",
315           "scope": "resource"
316         },
317         "typescript.preferences.quoteStyle": {
318           "type": "string",
319           "default": "auto",
320           "enum": [
321             "auto",
322             "single",
323             "double"
324           ]
325         },
326         "typescript.preferences.useAliasesForRenames": {
327           "type": "boolean",
328           "default": true,
329           "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
330           "scope": "resource"
331         },
332         "typescript.suggestionActions.enabled": {
333           "type": "boolean",
334           "default": true,
335           "description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
336         },
337         "typescript.validate.enable": {
338           "type": "boolean",
339           "default": true,
340           "description": "Enable/disable TypeScript validation."
341         },
342         "typescript.suggest.enabled": {
343           "type": "boolean",
344           "default": true
345         },
346         "typescript.suggest.paths": {
347           "type": "boolean",
348           "default": true,
349           "description": "Enable/disable suggest paths in import statement and require calls"
350         },
351         "typescript.suggest.importStatements": {
352           "type": "boolean",
353           "default": true
354         },
355         "typescript.suggest.autoImports": {
356           "type": "boolean",
357           "default": true,
358           "description": "Enable/disable auto import suggests."
359         },
360         "typescript.suggest.completeFunctionCalls": {
361           "type": "boolean",
362           "default": true,
363           "description": "Enable snippet for method suggestion"
364         },
365         "typescript.suggest.includeCompletionsForImportStatements": {
366           "type": "boolean",
367           "default": true,
368           "description": "Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace.",
369           "scope": "resource"
370         },
371         "typescript.suggest.includeCompletionsWithSnippetText": {
372           "type": "boolean",
373           "default": true,
374           "description": "Enable/disable snippet completions from TS Server. Requires using TypeScript 4.3+ in the workspace.",
375           "scope": "resource"
376         },
377         "typescript.format.enabled": {
378           "type": "boolean",
379           "default": true,
380           "description": "Enable format for typescript."
381         },
382         "typescript.format.insertSpaceAfterCommaDelimiter": {
383           "type": "boolean",
384           "default": true
385         },
386         "typescript.format.insertSpaceAfterConstructor": {
387           "type": "boolean",
388           "default": false
389         },
390         "typescript.format.insertSpaceAfterSemicolonInForStatements": {
391           "type": "boolean",
392           "default": true
393         },
394         "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
395           "type": "boolean",
396           "default": true
397         },
398         "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
399           "type": "boolean",
400           "default": true
401         },
402         "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
403           "type": "boolean",
404           "default": true
405         },
406         "typescript.format.insertSpaceBeforeFunctionParenthesis": {
407           "type": "boolean",
408           "default": false
409         },
410         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
411           "type": "boolean",
412           "default": false
413         },
414         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
415           "type": "boolean",
416           "default": false
417         },
418         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
419           "type": "boolean",
420           "default": false
421         },
422         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
423           "type": "boolean",
424           "default": false
425         },
426         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
427           "type": "boolean",
428           "default": false
429         },
430         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
431           "type": "boolean",
432           "default": false
433         },
434         "typescript.format.insertSpaceAfterTypeAssertion": {
435           "type": "boolean",
436           "default": false
437         },
438         "typescript.format.placeOpenBraceOnNewLineForFunctions": {
439           "type": "boolean",
440           "default": false
441         },
442         "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
443           "type": "boolean",
444           "default": false
445         },
446         "typescript.format.semicolons": {
447           "type": "string",
448           "default": "ignore",
449           "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
450           "scope": "resource",
451           "enum": [
452             "ignore",
453             "insert",
454             "remove"
455           ]
456         },
457         "typescript.suggest.includeAutomaticOptionalChainCompletions": {
458           "type": "boolean",
459           "default": true,
460           "description": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires TS 3.7+ and strict null checks to be enabled.",
461           "scope": "resource"
462         },
463         "typescript.workspaceSymbols.scope": {
464           "type": "string",
465           "enum": [
466             "allOpenProjects",
467             "currentProject"
468           ],
469           "default": "allOpenProjects",
470           "scope": "window"
471         },
472         "typescript.autoClosingTags": {
473           "type": "boolean",
474           "default": false
475         },
476         "javascript.showUnused": {
477           "type": "boolean",
478           "default": true,
479           "description": "Show unused variable hint."
480         },
481         "javascript.showDeprecated": {
482           "type": "boolean",
483           "default": true,
484           "description": "Show deprecated variable hint."
485         },
486         "javascript.updateImportsOnFileMove.enable": {
487           "type": "boolean",
488           "default": true
489         },
490         "javascript.implementationsCodeLens.enable": {
491           "type": "boolean",
492           "default": true
493         },
494         "javascript.referencesCodeLens.enable": {
495           "type": "boolean",
496           "default": true
497         },
498         "javascript.preferences.importModuleSpecifier": {
499           "type": "string",
500           "default": "shortest",
501           "description": "Preferred path style for auto imports.",
502           "enumDescriptions": [
503             "Prefers a non-relative import only if one is available that has fewer path segments than a relative import",
504             "Prefers a relative path to the imported file location",
505             "Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.",
506             "Prefers a non-relative import only if the relative import path would leave the package or project directory. Requires using TypeScript 4.2+ in the workspace."
507           ],
508           "enum": [
509             "shortest",
510             "relative",
511             "non-relative",
512             "project-relative"
513           ]
514         },
515         "javascript.preferences.importModuleSpecifierEnding": {
516           "type": "string",
517           "enum": [
518             "auto",
519             "minimal",
520             "index",
521             "js"
522           ],
523           "default": "auto",
524           "description": "Preferred path ending for auto imports.",
525           "scope": "resource"
526         },
527         "javascript.preferences.quoteStyle": {
528           "type": "string",
529           "default": "auto",
530           "enum": [
531             "auto",
532             "single",
533             "double"
534           ]
535         },
536         "javascript.preferences.useAliasesForRenames": {
537           "type": "boolean",
538           "default": true,
539           "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
540           "scope": "resource"
541         },
542         "javascript.validate.enable": {
543           "type": "boolean",
544           "default": true,
545           "description": "Enable/disable JavaScript validation."
546         },
547         "javascript.suggestionActions.enabled": {
548           "type": "boolean",
549           "default": true,
550           "description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
551         },
552         "javascript.suggest.names": {
553           "type": "boolean",
554           "default": true
555         },
556         "javascript.suggest.enabled": {
557           "type": "boolean",
558           "default": true
559         },
560         "javascript.suggest.paths": {
561           "type": "boolean",
562           "default": true,
563           "description": "Enable/disable suggest paths in import statement and require calls"
564         },
565         "javascript.suggest.autoImports": {
566           "type": "boolean",
567           "default": true,
568           "description": "Enable/disable auto import suggests."
569         },
570         "javascript.suggest.completeFunctionCalls": {
571           "type": "boolean",
572           "default": true,
573           "description": "Enable snippet for method suggestion"
574         },
575         "javascript.suggest.includeCompletionsForImportStatements": {
576           "type": "boolean",
577           "default": true,
578           "description": "Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace.",
579           "scope": "resource"
580         },
581         "javascript.format.enabled": {
582           "type": "boolean",
583           "default": true,
584           "description": "Enable format for javascript."
585         },
586         "javascript.format.insertSpaceAfterCommaDelimiter": {
587           "type": "boolean",
588           "default": true
589         },
590         "javascript.format.insertSpaceAfterConstructor": {
591           "type": "boolean",
592           "default": false
593         },
594         "javascript.format.insertSpaceAfterSemicolonInForStatements": {
595           "type": "boolean",
596           "default": true
597         },
598         "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
599           "type": "boolean",
600           "default": true
601         },
602         "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
603           "type": "boolean",
604           "default": true
605         },
606         "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
607           "type": "boolean",
608           "default": true
609         },
610         "javascript.format.insertSpaceBeforeFunctionParenthesis": {
611           "type": "boolean",
612           "default": false
613         },
614         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
615           "type": "boolean",
616           "default": false
617         },
618         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
619           "type": "boolean",
620           "default": false
621         },
622         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
623           "type": "boolean",
624           "default": false
625         },
626         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
627           "type": "boolean",
628           "default": false
629         },
630         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
631           "type": "boolean",
632           "default": false
633         },
634         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
635           "type": "boolean",
636           "default": false
637         },
638         "javascript.format.insertSpaceAfterTypeAssertion": {
639           "type": "boolean",
640           "default": false
641         },
642         "javascript.format.placeOpenBraceOnNewLineForFunctions": {
643           "type": "boolean",
644           "default": false
645         },
646         "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
647           "type": "boolean",
648           "default": false
649         },
650         "javascript.suggest.includeAutomaticOptionalChainCompletions": {
651           "type": "boolean",
652           "default": true,
653           "description": "%configuration.suggest.includeAutomaticOptionalChainCompletions%",
654           "scope": "resource"
655         },
656         "javascript.autoClosingTags": {
657           "type": "boolean",
658           "default": false
659         },
660         "javascript.format.semicolons": {
661           "type": "string",
662           "default": "ignore",
663           "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
664           "scope": "resource",
665           "enum": [
666             "ignore",
667             "insert",
668             "remove"
669           ]
670         }
671       }
672     },
673     "snippets": [
674       {
675         "language": "typescript",
676         "path": "./snippets/typescript.json"
677       },
678       {
679         "language": "typescriptreact",
680         "path": "./snippets/typescript.json"
681       }
682     ]
683   },
684   "author": "chemzqm@gmail.com",
685   "license": "MIT",
686   "devDependencies": {
687     "@types/node": "^10.12.0",
688     "coc.nvim": "^0.0.81-next.6",
689     "esbuild": "^0.8.29",
690     "semver": "^7.3.2",
691     "vscode-languageserver-protocol": "^3.16.0",
692     "which": "^2.0.2"
693   },
694   "dependencies": {
695     "typescript": "^4.3.5"
696   }
697 }