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