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 "build": "node esbuild.js"
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",
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"
43 "filetype": "javascript",
50 "filetype": "javascriptreact",
57 "filetype": "typescript",
64 "filetype": "typescriptreact",
73 "title": "Reload current project",
74 "category": "TSServer",
75 "command": "tsserver.reloadProjects"
78 "title": "Open log file of tsserver.",
79 "category": "TSServer",
80 "command": "tsserver.openTsServerLog"
83 "title": "Open project config file.",
84 "category": "TSServer",
85 "command": "tsserver.goToProjectConfig"
88 "title": "Restart tsserver",
89 "category": "TSServer",
90 "command": "tsserver.restart"
93 "title": "Run `tsc --watch` for current project by use vim's job feature.",
94 "category": "TSServer",
95 "command": "tsserver.watchBuild"
98 "title": "Fix autofixable problems of current document.",
99 "category": "TSServer",
100 "command": "tsserver.executeAutofix"
110 "description": "Enable tsserver extension"
118 "description": "Sets the locale used to report JavaScript and TypeScript errors. Default of `null` uses english."
120 "tsserver.typingsCacheLocation": {
123 "description": "Folder path for cache typings"
125 "tsserver.formatOnType": {
128 "description": "Run format on type special characters."
130 "tsserver.enableJavascript": {
133 "description": "Use tsserver for javascript files"
135 "tsserver.ignoreLocalTsserver": {
138 "description": "Always use tsserver module from tsserver.tsdk or tsserver extension."
140 "tsserver.maxTsServerMemory": {
143 "description": "Set the maximum amount of memory to allocate to the TypeScript server process"
145 "tsserver.watchOptions": {
147 "description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
151 "description": "Strategy for how individual files are watched.",
153 "fixedPollingInterval",
154 "priorityPollingInterval",
155 "dynamicPriorityPolling",
157 "useFsEventsOnParentDirectory"
159 "default": "useFsEvents"
163 "description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
165 "fixedPollingInterval",
166 "dynamicPriorityPolling",
169 "default": "useFsEvents"
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.",
175 "fixedPollingInterval",
176 "priorityPollingInterval",
177 "dynamicPriorityPolling"
180 "synchronousWatchDirectory": {
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."
189 "description": "Directory contains tsserver.js,"
194 "description": "Executable path of npm for download typings"
205 "description": "Log level of tsserver"
207 "tsserver.trace.server": {
215 "description": "Trace level of tsserver"
217 "tsserver.pluginPaths": {
223 "description": "Folders contains tsserver plugins"
225 "tsserver.debugPort": {
227 "description": "Debug port number of tsserver"
229 "tsserver.reportStyleChecksAsWarnings": {
233 "tsserver.implicitProjectConfig.checkJs": {
236 "description": "Enable checkJs for implicit project"
238 "tsserver.implicitProjectConfig.experimentalDecorators": {
241 "description": "Enable experimentalDecorators for implicit project"
243 "tsserver.disableAutomaticTypeAcquisition": {
246 "description": "Disable download of typings"
248 "tsserver.useBatchedBufferSync": {
251 "description": "Use batched buffer sync support."
253 "typescript.showUnused": {
256 "description": "Show unused variable hint."
258 "typescript.updateImportsOnFileMove.enable": {
261 "description": "Enable update imports on file move."
263 "typescript.implementationsCodeLens.enable": {
266 "description": "Enable codeLens for implementations"
268 "typescript.referencesCodeLens.enable": {
271 "description": "Enable codeLens for references"
273 "typescript.preferences.importModuleSpecifier": {
276 "description": "Preferred path style for auto imports.",
283 "typescript.preferences.importModuleSpecifierEnding": {
292 "description": "Preferred path ending for auto imports.",
295 "typescript.preferences.quoteStyle": {
304 "typescript.preferences.useAliasesForRenames": {
307 "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
310 "typescript.suggestionActions.enabled": {
313 "description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
315 "typescript.validate.enable": {
318 "description": "Enable/disable TypeScript validation."
320 "typescript.suggest.enabled": {
324 "typescript.suggest.paths": {
327 "description": "Enable/disable suggest paths in import statement and require calls"
329 "typescript.suggest.autoImports": {
332 "description": "Enable/disable auto import suggests."
334 "typescript.suggest.completeFunctionCalls": {
337 "description": "Enable snippet for method suggestion"
339 "typescript.format.enabled": {
342 "description": "Enable format for typescript."
344 "typescript.format.insertSpaceAfterCommaDelimiter": {
348 "typescript.format.insertSpaceAfterConstructor": {
352 "typescript.format.insertSpaceAfterSemicolonInForStatements": {
356 "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
360 "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
364 "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
368 "typescript.format.insertSpaceBeforeFunctionParenthesis": {
372 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
376 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
380 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
384 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
388 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
392 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
396 "typescript.format.insertSpaceAfterTypeAssertion": {
400 "typescript.format.placeOpenBraceOnNewLineForFunctions": {
404 "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
408 "typescript.format.semicolons": {
411 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
419 "typescript.suggest.includeAutomaticOptionalChainCompletions": {
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.",
425 "typescript.workspaceSymbols.scope": {
431 "default": "allOpenProjects",
434 "javascript.showUnused": {
437 "description": "Show unused variable hint."
439 "javascript.updateImportsOnFileMove.enable": {
443 "javascript.implementationsCodeLens.enable": {
447 "javascript.referencesCodeLens.enable": {
451 "javascript.preferences.importModuleSpecifier": {
454 "description": "Preferred path style for auto imports.",
461 "javascript.preferences.importModuleSpecifierEnding": {
470 "description": "Preferred path ending for auto imports.",
473 "javascript.preferences.quoteStyle": {
482 "javascript.preferences.useAliasesForRenames": {
485 "description": "Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.",
488 "javascript.validate.enable": {
491 "description": "Enable/disable JavaScript validation."
493 "javascript.suggestionActions.enabled": {
496 "description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
498 "javascript.suggest.names": {
502 "javascript.suggest.enabled": {
506 "javascript.suggest.paths": {
509 "description": "Enable/disable suggest paths in import statement and require calls"
511 "javascript.suggest.autoImports": {
514 "description": "Enable/disable auto import suggests."
516 "javascript.suggest.completeFunctionCalls": {
519 "description": "Enable snippet for method suggestion"
521 "javascript.format.enabled": {
524 "description": "Enable format for javascript."
526 "javascript.format.insertSpaceAfterCommaDelimiter": {
530 "javascript.format.insertSpaceAfterConstructor": {
534 "javascript.format.insertSpaceAfterSemicolonInForStatements": {
538 "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
542 "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
546 "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
550 "javascript.format.insertSpaceBeforeFunctionParenthesis": {
554 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
558 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
562 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": {
566 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
570 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
574 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
578 "javascript.format.insertSpaceAfterTypeAssertion": {
582 "javascript.format.placeOpenBraceOnNewLineForFunctions": {
586 "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
590 "javascript.suggest.includeAutomaticOptionalChainCompletions": {
593 "description": "%configuration.suggest.includeAutomaticOptionalChainCompletions%",
596 "javascript.format.semicolons": {
599 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
611 "language": "typescript",
612 "path": "./snippets/typescript.json"
615 "language": "typescriptreact",
616 "path": "./snippets/typescript.json"
620 "author": "chemzqm@gmail.com",
623 "@types/node": "^10.12.0",
624 "coc.nvim": "^0.0.80",
625 "esbuild": "^0.8.29",
627 "vscode-languageserver-protocol": "^3.15.3",
631 "typescript": "^4.1.3"