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",
22 "prepare": "npx npm-run-all clean build"
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"
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"
115 "description": "Locale of tsserver"
117 "tsserver.typingsCacheLocation": {
120 "description": "Folder path for cache typings"
122 "tsserver.formatOnType": {
125 "description": "Run format on type special characters."
127 "tsserver.enableJavascript": {
130 "description": "Use tsserver for javascript files"
132 "tsserver.ignoreLocalTsserver": {
135 "description": "Always use tsserver module from tsserver.tsdk or tsserver extension."
137 "tsserver.maxTsServerMemory": {
140 "description": "Set the maximum amount of memory to allocate to the TypeScript server process"
142 "tsserver.watchOptions": {
144 "description": "Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.",
148 "description": "Strategy for how individual files are watched.",
150 "fixedPollingInterval",
151 "priorityPollingInterval",
152 "dynamicPriorityPolling",
154 "useFsEventsOnParentDirectory"
156 "default": "useFsEvents"
160 "description": "Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.",
162 "fixedPollingInterval",
163 "dynamicPriorityPolling",
166 "default": "useFsEvents"
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.",
172 "fixedPollingInterval",
173 "priorityPollingInterval",
174 "dynamicPriorityPolling"
177 "synchronousWatchDirectory": {
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."
186 "description": "Directory contains tsserver.js,"
191 "description": "Executable path of npm for download typings"
202 "description": "Log level of tsserver"
204 "tsserver.trace.server": {
212 "description": "Trace level of tsserver"
214 "tsserver.pluginRoot": {
220 "description": "Folder contains tsserver plugins"
222 "tsserver.debugPort": {
224 "description": "Debug port number of tsserver"
226 "tsserver.reportStyleChecksAsWarnings": {
230 "tsserver.implicitProjectConfig.checkJs": {
233 "description": "Enable checkJs for implicit project"
235 "tsserver.implicitProjectConfig.experimentalDecorators": {
238 "description": "Enable experimentalDecorators for implicit project"
240 "tsserver.disableAutomaticTypeAcquisition": {
243 "description": "Disable download of typings"
245 "tsserver.useBatchedBufferSync": {
248 "description": "Use batched buffer sync support."
250 "typescript.showUnused": {
253 "description": "Show unused variable hint."
255 "typescript.updateImportsOnFileMove.enable": {
258 "description": "Enable update imports on file move."
260 "typescript.implementationsCodeLens.enable": {
263 "description": "Enable codeLens for implementations"
265 "typescript.referencesCodeLens.enable": {
268 "description": "Enable codeLens for references"
270 "typescript.preferences.importModuleSpecifier": {
273 "description": "Preferred path style for auto imports.",
280 "typescript.preferences.importModuleSpecifierEnding": {
289 "description": "Preferred path ending for auto imports.",
292 "typescript.preferences.quoteStyle": {
301 "typescript.suggestionActions.enabled": {
304 "description": "Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
306 "typescript.validate.enable": {
309 "description": "Enable/disable TypeScript validation."
311 "typescript.suggest.enabled": {
315 "typescript.suggest.paths": {
318 "description": "Enable/disable suggest paths in import statement and require calls"
320 "typescript.suggest.autoImports": {
323 "description": "Enable/disable auto import suggests."
325 "typescript.suggest.completeFunctionCalls": {
328 "description": "Enable snippet for method suggestion"
330 "typescript.format.enabled": {
333 "description": "Enable format for typescript."
335 "typescript.format.insertSpaceAfterCommaDelimiter": {
339 "typescript.format.insertSpaceAfterConstructor": {
343 "typescript.format.insertSpaceAfterSemicolonInForStatements": {
347 "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
351 "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
355 "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
359 "typescript.format.insertSpaceBeforeFunctionParenthesis": {
363 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
367 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
371 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
375 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
379 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
383 "typescript.format.insertSpaceAfterTypeAssertion": {
387 "typescript.format.placeOpenBraceOnNewLineForFunctions": {
391 "typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
395 "typescript.format.semicolons": {
398 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
406 "typescript.suggest.includeAutomaticOptionalChainCompletions": {
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.",
412 "typescript.workspaceSymbols.scope": {
418 "default": "allOpenProjects",
421 "javascript.showUnused": {
424 "description": "Show unused variable hint."
426 "javascript.updateImportsOnFileMove.enable": {
430 "javascript.implementationsCodeLens.enable": {
434 "javascript.referencesCodeLens.enable": {
438 "javascript.preferences.importModuleSpecifier": {
441 "description": "Preferred path style for auto imports.",
448 "javascript.preferences.importModuleSpecifierEnding": {
457 "description": "Preferred path ending for auto imports.",
460 "javascript.preferences.quoteStyle": {
469 "javascript.validate.enable": {
472 "description": "Enable/disable JavaScript validation."
474 "javascript.suggestionActions.enabled": {
477 "description": "Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."
479 "javascript.suggest.names": {
483 "javascript.suggest.enabled": {
487 "javascript.suggest.paths": {
490 "description": "Enable/disable suggest paths in import statement and require calls"
492 "javascript.suggest.autoImports": {
495 "description": "Enable/disable auto import suggests."
497 "javascript.suggest.completeFunctionCalls": {
500 "description": "Enable snippet for method suggestion"
502 "javascript.format.enabled": {
505 "description": "Enable format for javascript."
507 "javascript.format.insertSpaceAfterCommaDelimiter": {
511 "javascript.format.insertSpaceAfterConstructor": {
515 "javascript.format.insertSpaceAfterSemicolonInForStatements": {
519 "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
523 "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
527 "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
531 "javascript.format.insertSpaceBeforeFunctionParenthesis": {
535 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
539 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
543 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": {
547 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": {
551 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": {
555 "javascript.format.insertSpaceAfterTypeAssertion": {
559 "javascript.format.placeOpenBraceOnNewLineForFunctions": {
563 "javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
567 "javascript.suggest.includeAutomaticOptionalChainCompletions": {
570 "description": "%configuration.suggest.includeAutomaticOptionalChainCompletions%",
573 "javascript.format.semicolons": {
576 "description": "Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace.",
588 "language": "typescript",
589 "path": "./snippets/typescript.json"
592 "language": "typescriptreact",
593 "path": "./snippets/typescript.json"
597 "author": "chemzqm@gmail.com",
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",
608 "ts-loader": "^7.0.4",
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",
617 "typescript": "3.9.5"