2 "name": "coc-tsserver",
4 "description": "tsserver extension for coc.nvim",
5 "main": "lib/index.js",
6 "publisher": "chemzqm",
12 "url": "https://github.com/neoclide/coc-tsserver.git"
20 "clean": "rimraf lib",
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",
34 "onCommand:_typescript.configurePlugin",
35 "onCommand:typescript.reloadProjects",
36 "onCommand:javascript.reloadProjects",
37 "onCommand:javascript.goToProjectConfig",
38 "onCommand:typescript.goToProjectConfig",
39 "onCommand:typescript.openTsServerLog",
40 "onCommand:tsserver.watchBuild"
45 "filetype": "javascript",
52 "filetype": "javascriptreact",
59 "filetype": "typescript",
66 "filetype": "typescriptreact",
75 "title": "Reload current project",
76 "category": "TSServer",
77 "command": "tsserver.reloadProjects"
80 "title": "Open log file of tsserver.",
81 "category": "TSServer",
82 "command": "tsserver.openTsServerLog"
85 "title": "Open project config file.",
86 "category": "TSServer",
87 "command": "tsserver.goToProjectConfig"
90 "title": "Restart tsserver",
91 "category": "TSServer",
92 "command": "tsserver.restart"
95 "title": "Run `tsc --watch` for current project by use vim's job feature.",
96 "category": "TSServer",
97 "command": "tsserver.watchBuild"
100 "title": "Fix autofixable problems of current document.",
101 "category": "TSServer",
102 "command": "tsserver.executeAutofix"
112 "description": "Enable tsserver extension"
120 "description": "Sets the locale used to report JavaScript and TypeScript errors. Default of `null` uses english."
122 "tsserver.typingsCacheLocation": {
125 "description": "Folder path for cache typings"
127 "tsserver.formatOnType": {
130 "description": "Run format on type special characters."
132 "tsserver.enableJavascript": {
135 "description": "Use tsserver for javascript files"
137 "tsserver.ignoreLocalTsserver": {
140 "description": "Always use tsserver module from tsserver.tsdk or tsserver extension."
142 "tsserver.maxTsServerMemory": {
145 "description": "Set the maximum amount of memory to allocate to the TypeScript server process"
147 "tsserver.watchOptions": {
149 "description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
153 "description": "Strategy for how individual files are watched.",
155 "fixedPollingInterval",
156 "priorityPollingInterval",
157 "dynamicPriorityPolling",
159 "useFsEventsOnParentDirectory"
161 "default": "useFsEvents"
165 "description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
167 "fixedPollingInterval",
168 "dynamicPriorityPolling",
171 "default": "useFsEvents"
175 "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.",
177 "fixedPollingInterval",
178 "priorityPollingInterval",
179 "dynamicPriorityPolling"
182 "synchronousWatchDirectory": {
184 "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."
191 "description": "Directory contains tsserver.js,"
196 "description": "Executable path of npm for download typings"
207 "description": "Log level of tsserver"
209 "tsserver.trace.server": {
217 "description": "Trace level of tsserver"
219 "tsserver.pluginPaths": {
225 "description": "Folders contains tsserver plugins"
227 "tsserver.debugPort": {
229 "description": "Debug port number of tsserver"
231 "tsserver.reportStyleChecksAsWarnings": {
235 "tsserver.implicitProjectConfig.checkJs": {
238 "description": "Enable checkJs for implicit project"
240 "tsserver.implicitProjectConfig.experimentalDecorators": {
243 "description": "Enable experimentalDecorators for implicit project"
245 "tsserver.disableAutomaticTypeAcquisition": {
248 "description": "Disable download of typings"
250 "tsserver.useBatchedBufferSync": {
253 "description": "Use batched buffer sync support."
255 "typescript.showUnused": {
258 "description": "Show unused variable hint."
260 "typescript.updateImportsOnFileMove.enable": {
263 "description": "Enable update imports on file move."
265 "typescript.implementationsCodeLens.enable": {
268 "description": "Enable codeLens for implementations"
270 "typescript.referencesCodeLens.enable": {
273 "description": "Enable codeLens for references"
275 "typescript.preferences.importModuleSpecifier": {
278 "description": "Preferred path style for auto imports.",
285 "typescript.preferences.importModuleSpecifierEnding": {
294 "description": "Preferred path ending for auto imports.",
297 "typescript.preferences.quoteStyle": {
306 "typescript.preferences.useAliasesForRenames": {
309 "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
312 "typescript.suggestionActions.enabled": {
315 "description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
317 "typescript.validate.enable": {
320 "description": "Enable/disable TypeScript validation."
322 "typescript.suggest.enabled": {
326 "typescript.suggest.paths": {
329 "description": "Enable/disable suggest paths in import statement and require calls"
331 "typescript.suggest.autoImports": {
334 "description": "Enable/disable auto import suggests."
336 "typescript.suggest.completeFunctionCalls": {
339 "description": "Enable snippet for method suggestion"
341 "typescript.format.enabled": {
344 "description": "Enable format for typescript."
346 "typescript.format.insertSpaceAfterCommaDelimiter": {
350 "typescript.format.insertSpaceAfterConstructor": {
354 "typescript.format.insertSpaceAfterSemicolonInForStatements": {
358 "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
362 "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
366 "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
370 "typescript.format.insertSpaceBeforeFunctionParenthesis": {
374 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
378 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
382 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
386 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
390 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
394 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
398 "typescript.format.insertSpaceAfterTypeAssertion": {
402 "typescript.format.placeOpenBraceOnNewLineForFunctions": {
406 "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
410 "typescript.format.semicolons": {
413 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
421 "typescript.suggest.includeAutomaticOptionalChainCompletions": {
424 "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.",
427 "typescript.workspaceSymbols.scope": {
433 "default": "allOpenProjects",
436 "javascript.showUnused": {
439 "description": "Show unused variable hint."
441 "javascript.updateImportsOnFileMove.enable": {
445 "javascript.implementationsCodeLens.enable": {
449 "javascript.referencesCodeLens.enable": {
453 "javascript.preferences.importModuleSpecifier": {
456 "description": "Preferred path style for auto imports.",
463 "javascript.preferences.importModuleSpecifierEnding": {
472 "description": "Preferred path ending for auto imports.",
475 "javascript.preferences.quoteStyle": {
484 "javascript.preferences.useAliasesForRenames": {
487 "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
490 "javascript.validate.enable": {
493 "description": "Enable/disable JavaScript validation."
495 "javascript.suggestionActions.enabled": {
498 "description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
500 "javascript.suggest.names": {
504 "javascript.suggest.enabled": {
508 "javascript.suggest.paths": {
511 "description": "Enable/disable suggest paths in import statement and require calls"
513 "javascript.suggest.autoImports": {
516 "description": "Enable/disable auto import suggests."
518 "javascript.suggest.completeFunctionCalls": {
521 "description": "Enable snippet for method suggestion"
523 "javascript.format.enabled": {
526 "description": "Enable format for javascript."
528 "javascript.format.insertSpaceAfterCommaDelimiter": {
532 "javascript.format.insertSpaceAfterConstructor": {
536 "javascript.format.insertSpaceAfterSemicolonInForStatements": {
540 "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
544 "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
548 "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
552 "javascript.format.insertSpaceBeforeFunctionParenthesis": {
556 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
560 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
564 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
568 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
572 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
576 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
580 "javascript.format.insertSpaceAfterTypeAssertion": {
584 "javascript.format.placeOpenBraceOnNewLineForFunctions": {
588 "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
592 "javascript.suggest.includeAutomaticOptionalChainCompletions": {
595 "description": "%configuration.suggest.includeAutomaticOptionalChainCompletions%",
598 "javascript.format.semicolons": {
601 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
613 "language": "typescript",
614 "path": "./snippets/typescript.json"
617 "language": "typescriptreact",
618 "path": "./snippets/typescript.json"
622 "author": "chemzqm@gmail.com",
625 "@types/node": "^10.12.0",
626 "coc.nvim": "^0.0.79",
629 "ts-loader": "^8.0.1",
630 "vscode-languageserver-protocol": "^3.15.3",
631 "vscode-languageserver-textdocument": "^1.0.1",
632 "webpack": "^4.43.0",
633 "webpack-cli": "^3.3.12",
637 "typescript": "4.1.2"