.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-tsserver / package.json
1 {
2   "name": "coc-tsserver",
3   "version": "1.6.8",
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     "build": "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": "Run `tsc --watch` for current project by use vim's job feature.",
94         "category": "TSServer",
95         "command": "tsserver.watchBuild"
96       },
97       {
98         "title": "Fix autofixable problems of current document.",
99         "category": "TSServer",
100         "command": "tsserver.executeAutofix"
101       }
102     ],
103     "configuration": {
104       "type": "object",
105       "title": "Tsserver",
106       "properties": {
107         "tsserver.enable": {
108           "type": "boolean",
109           "default": true,
110           "description": "Enable tsserver extension"
111         },
112         "tsserver.locale": {
113           "type": [
114             "string",
115             "null"
116           ],
117           "default": null,
118           "description": "Sets the locale used to report JavaScript and TypeScript errors. Default of `null` uses english."
119         },
120         "tsserver.typingsCacheLocation": {
121           "type": "string",
122           "default": "",
123           "description": "Folder path for cache typings"
124         },
125         "tsserver.formatOnType": {
126           "type": "boolean",
127           "default": true,
128           "description": "Run format on type special characters."
129         },
130         "tsserver.enableJavascript": {
131           "type": "boolean",
132           "default": true,
133           "description": "Use tsserver for javascript files"
134         },
135         "tsserver.ignoreLocalTsserver": {
136           "type": "boolean",
137           "default": false,
138           "description": "Always use tsserver module from tsserver.tsdk or tsserver extension."
139         },
140         "tsserver.maxTsServerMemory": {
141           "type": "number",
142           "default": 0,
143           "description": "Set the maximum amount of memory to allocate to the TypeScript server process"
144         },
145         "tsserver.watchOptions": {
146           "type": "object",
147           "description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
148           "properties": {
149             "watchFile": {
150               "type": "string",
151               "description": "Strategy for how individual files are watched.",
152               "enum": [
153                 "fixedPollingInterval",
154                 "priorityPollingInterval",
155                 "dynamicPriorityPolling",
156                 "useFsEvents",
157                 "useFsEventsOnParentDirectory"
158               ],
159               "default": "useFsEvents"
160             },
161             "watchDirectory": {
162               "type": "string",
163               "description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
164               "enum": [
165                 "fixedPollingInterval",
166                 "dynamicPriorityPolling",
167                 "useFsEvents"
168               ],
169               "default": "useFsEvents"
170             },
171             "fallbackPolling": {
172               "type": "string",
173               "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.",
174               "enum": [
175                 "fixedPollingInterval",
176                 "priorityPollingInterval",
177                 "dynamicPriorityPolling"
178               ]
179             },
180             "synchronousWatchDirectory": {
181               "type": "boolean",
182               "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."
183             }
184           }
185         },
186         "tsserver.tsdk": {
187           "type": "string",
188           "default": "",
189           "description": "Directory contains tsserver.js,"
190         },
191         "tsserver.npm": {
192           "type": "string",
193           "default": "",
194           "description": "Executable path of npm for download typings"
195         },
196         "tsserver.log": {
197           "type": "string",
198           "default": "off",
199           "enum": [
200             "normal",
201             "terse",
202             "verbose",
203             "off"
204           ],
205           "description": "Log level of tsserver"
206         },
207         "tsserver.trace.server": {
208           "type": "string",
209           "default": "off",
210           "enum": [
211             "off",
212             "messages",
213             "verbose"
214           ],
215           "description": "Trace level of tsserver"
216         },
217         "tsserver.pluginPaths": {
218           "type": "array",
219           "default": [],
220           "items": {
221             "type": "string"
222           },
223           "description": "Folders contains tsserver plugins"
224         },
225         "tsserver.debugPort": {
226           "type": "number",
227           "description": "Debug port number of tsserver"
228         },
229         "tsserver.reportStyleChecksAsWarnings": {
230           "type": "boolean",
231           "default": true
232         },
233         "tsserver.implicitProjectConfig.checkJs": {
234           "type": "boolean",
235           "default": false,
236           "description": "Enable checkJs for implicit project"
237         },
238         "tsserver.implicitProjectConfig.experimentalDecorators": {
239           "type": "boolean",
240           "default": false,
241           "description": "Enable experimentalDecorators for implicit project"
242         },
243         "tsserver.disableAutomaticTypeAcquisition": {
244           "type": "boolean",
245           "default": false,
246           "description": "Disable download of typings"
247         },
248         "tsserver.useBatchedBufferSync": {
249           "type": "boolean",
250           "default": true,
251           "description": "Use batched buffer sync support."
252         },
253         "typescript.showUnused": {
254           "type": "boolean",
255           "default": true,
256           "description": "Show unused variable hint."
257         },
258         "typescript.updateImportsOnFileMove.enable": {
259           "type": "boolean",
260           "default": true,
261           "description": "Enable update imports on file move."
262         },
263         "typescript.implementationsCodeLens.enable": {
264           "type": "boolean",
265           "default": true,
266           "description": "Enable codeLens for implementations"
267         },
268         "typescript.referencesCodeLens.enable": {
269           "type": "boolean",
270           "default": true,
271           "description": "Enable codeLens for references"
272         },
273         "typescript.preferences.importModuleSpecifier": {
274           "type": "string",
275           "default": "auto",
276           "description": "Preferred path style for auto imports.",
277           "enum": [
278             "non-relative",
279             "relative",
280             "auto"
281           ]
282         },
283         "typescript.preferences.importModuleSpecifierEnding": {
284           "type": "string",
285           "enum": [
286             "auto",
287             "minimal",
288             "index",
289             "js"
290           ],
291           "default": "auto",
292           "description": "Preferred path ending for auto imports.",
293           "scope": "resource"
294         },
295         "typescript.preferences.quoteStyle": {
296           "type": "string",
297           "default": "auto",
298           "enum": [
299             "auto",
300             "single",
301             "double"
302           ]
303         },
304         "typescript.preferences.useAliasesForRenames": {
305           "type": "boolean",
306           "default": true,
307           "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
308           "scope": "resource"
309         },
310         "typescript.suggestionActions.enabled": {
311           "type": "boolean",
312           "default": true,
313           "description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
314         },
315         "typescript.validate.enable": {
316           "type": "boolean",
317           "default": true,
318           "description": "Enable/disable TypeScript validation."
319         },
320         "typescript.suggest.enabled": {
321           "type": "boolean",
322           "default": true
323         },
324         "typescript.suggest.paths": {
325           "type": "boolean",
326           "default": true,
327           "description": "Enable/disable suggest paths in import statement and require calls"
328         },
329         "typescript.suggest.autoImports": {
330           "type": "boolean",
331           "default": true,
332           "description": "Enable/disable auto import suggests."
333         },
334         "typescript.suggest.completeFunctionCalls": {
335           "type": "boolean",
336           "default": true,
337           "description": "Enable snippet for method suggestion"
338         },
339         "typescript.format.enabled": {
340           "type": "boolean",
341           "default": true,
342           "description": "Enable format for typescript."
343         },
344         "typescript.format.insertSpaceAfterCommaDelimiter": {
345           "type": "boolean",
346           "default": true
347         },
348         "typescript.format.insertSpaceAfterConstructor": {
349           "type": "boolean",
350           "default": false
351         },
352         "typescript.format.insertSpaceAfterSemicolonInForStatements": {
353           "type": "boolean",
354           "default": true
355         },
356         "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
357           "type": "boolean",
358           "default": true
359         },
360         "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
361           "type": "boolean",
362           "default": true
363         },
364         "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
365           "type": "boolean",
366           "default": true
367         },
368         "typescript.format.insertSpaceBeforeFunctionParenthesis": {
369           "type": "boolean",
370           "default": false
371         },
372         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
373           "type": "boolean",
374           "default": false
375         },
376         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
377           "type": "boolean",
378           "default": false
379         },
380         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
381           "type": "boolean",
382           "default": false
383         },
384         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
385           "type": "boolean",
386           "default": false
387         },
388         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
389           "type": "boolean",
390           "default": false
391         },
392         "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
393           "type": "boolean",
394           "default": false
395         },
396         "typescript.format.insertSpaceAfterTypeAssertion": {
397           "type": "boolean",
398           "default": false
399         },
400         "typescript.format.placeOpenBraceOnNewLineForFunctions": {
401           "type": "boolean",
402           "default": false
403         },
404         "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
405           "type": "boolean",
406           "default": false
407         },
408         "typescript.format.semicolons": {
409           "type": "string",
410           "default": "ignore",
411           "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
412           "scope": "resource",
413           "enum": [
414             "ignore",
415             "insert",
416             "remove"
417           ]
418         },
419         "typescript.suggest.includeAutomaticOptionalChainCompletions": {
420           "type": "boolean",
421           "default": true,
422           "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.",
423           "scope": "resource"
424         },
425         "typescript.workspaceSymbols.scope": {
426           "type": "string",
427           "enum": [
428             "allOpenProjects",
429             "currentProject"
430           ],
431           "default": "allOpenProjects",
432           "scope": "window"
433         },
434         "javascript.showUnused": {
435           "type": "boolean",
436           "default": true,
437           "description": "Show unused variable hint."
438         },
439         "javascript.updateImportsOnFileMove.enable": {
440           "type": "boolean",
441           "default": true
442         },
443         "javascript.implementationsCodeLens.enable": {
444           "type": "boolean",
445           "default": true
446         },
447         "javascript.referencesCodeLens.enable": {
448           "type": "boolean",
449           "default": true
450         },
451         "javascript.preferences.importModuleSpecifier": {
452           "type": "string",
453           "default": "auto",
454           "description": "Preferred path style for auto imports.",
455           "enum": [
456             "auto",
457             "non-relative",
458             "relative"
459           ]
460         },
461         "javascript.preferences.importModuleSpecifierEnding": {
462           "type": "string",
463           "enum": [
464             "auto",
465             "minimal",
466             "index",
467             "js"
468           ],
469           "default": "auto",
470           "description": "Preferred path ending for auto imports.",
471           "scope": "resource"
472         },
473         "javascript.preferences.quoteStyle": {
474           "type": "string",
475           "default": "auto",
476           "enum": [
477             "auto",
478             "single",
479             "double"
480           ]
481         },
482         "javascript.preferences.useAliasesForRenames": {
483           "type": "boolean",
484           "default": true,
485           "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
486           "scope": "resource"
487         },
488         "javascript.validate.enable": {
489           "type": "boolean",
490           "default": true,
491           "description": "Enable/disable JavaScript validation."
492         },
493         "javascript.suggestionActions.enabled": {
494           "type": "boolean",
495           "default": true,
496           "description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
497         },
498         "javascript.suggest.names": {
499           "type": "boolean",
500           "default": true
501         },
502         "javascript.suggest.enabled": {
503           "type": "boolean",
504           "default": true
505         },
506         "javascript.suggest.paths": {
507           "type": "boolean",
508           "default": true,
509           "description": "Enable/disable suggest paths in import statement and require calls"
510         },
511         "javascript.suggest.autoImports": {
512           "type": "boolean",
513           "default": true,
514           "description": "Enable/disable auto import suggests."
515         },
516         "javascript.suggest.completeFunctionCalls": {
517           "type": "boolean",
518           "default": true,
519           "description": "Enable snippet for method suggestion"
520         },
521         "javascript.format.enabled": {
522           "type": "boolean",
523           "default": true,
524           "description": "Enable format for javascript."
525         },
526         "javascript.format.insertSpaceAfterCommaDelimiter": {
527           "type": "boolean",
528           "default": true
529         },
530         "javascript.format.insertSpaceAfterConstructor": {
531           "type": "boolean",
532           "default": false
533         },
534         "javascript.format.insertSpaceAfterSemicolonInForStatements": {
535           "type": "boolean",
536           "default": true
537         },
538         "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
539           "type": "boolean",
540           "default": true
541         },
542         "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
543           "type": "boolean",
544           "default": true
545         },
546         "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
547           "type": "boolean",
548           "default": true
549         },
550         "javascript.format.insertSpaceBeforeFunctionParenthesis": {
551           "type": "boolean",
552           "default": false
553         },
554         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
555           "type": "boolean",
556           "default": false
557         },
558         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
559           "type": "boolean",
560           "default": false
561         },
562         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
563           "type": "boolean",
564           "default": false
565         },
566         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
567           "type": "boolean",
568           "default": false
569         },
570         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
571           "type": "boolean",
572           "default": false
573         },
574         "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
575           "type": "boolean",
576           "default": false
577         },
578         "javascript.format.insertSpaceAfterTypeAssertion": {
579           "type": "boolean",
580           "default": false
581         },
582         "javascript.format.placeOpenBraceOnNewLineForFunctions": {
583           "type": "boolean",
584           "default": false
585         },
586         "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
587           "type": "boolean",
588           "default": false
589         },
590         "javascript.suggest.includeAutomaticOptionalChainCompletions": {
591           "type": "boolean",
592           "default": true,
593           "description": "%configuration.suggest.includeAutomaticOptionalChainCompletions%",
594           "scope": "resource"
595         },
596         "javascript.format.semicolons": {
597           "type": "string",
598           "default": "ignore",
599           "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
600           "scope": "resource",
601           "enum": [
602             "ignore",
603             "insert",
604             "remove"
605           ]
606         }
607       }
608     },
609     "snippets": [
610       {
611         "language": "typescript",
612         "path": "./snippets/typescript.json"
613       },
614       {
615         "language": "typescriptreact",
616         "path": "./snippets/typescript.json"
617       }
618     ]
619   },
620   "author": "chemzqm@gmail.com",
621   "license": "MIT",
622   "devDependencies": {
623     "@types/node": "^10.12.0",
624     "coc.nvim": "^0.0.80",
625     "esbuild": "^0.8.29",
626     "semver": "^7.3.2",
627     "vscode-languageserver-protocol": "^3.15.3",
628     "which": "^2.0.2"
629   },
630   "dependencies": {
631     "typescript": "^4.1.3"
632   }
633 }