{"_id":"@ark7/coc-tsserver","_rev":"2-161022b86e7d98bb6f3e44462aa11960","name":"@ark7/coc-tsserver","dist-tags":{"latest":"2.1.3"},"versions":{"2.1.3":{"name":"@ark7/coc-tsserver","version":"2.1.3","keywords":["coc.nvim","tsserver","typescript","javascript"],"author":{"name":"chemzqm@gmail.com"},"license":"MIT","_id":"@ark7/coc-tsserver@2.1.3","maintainers":[{"name":"ark7_inc","email":"yz@ark7.com"}],"homepage":"https://github.com/neoclide/coc-tsserver#readme","bugs":{"url":"https://github.com/neoclide/coc-tsserver/issues"},"dist":{"shasum":"5eb5db3bff7f3e5c6812965933b78d33145d4de2","tarball":"https://registry.npmjs.org/@ark7/coc-tsserver/-/coc-tsserver-2.1.3.tgz","fileCount":8,"integrity":"sha512-SzyRT6M6xD7l6O0QOyhb7Mx2RszrgAhrl8XW+vfcmG2UrFHeeaSvY/Jw8CL6hEkjojHN+opzGzgF0zgyS1F/4A==","signatures":[{"sig":"MEYCIQCsBesFwMhTmXQMxru8tDmIY8HPoBC4YDY/maB5ZGcFyQIhAITVoiZBzwlLMdxejrDPjHJgI45m89hxIKWehXMhgBWP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":753707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ypZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjAQ/+LtCbZYtSIrVhDWjTJnL9sx9ElcJkftYQmoWAEpdN45GSCX0V\r\n6vgisQMFPnqZzfW/K+DahPJl9HA0wzlUNsaCazp5XIAP7EdsQdcV7HU1Ef+H\r\nmZsg48Z1dgDg7OuJPN1uVnPivPPzN9Zry46IxPWbHFqs6rEDw7gmMQnK0NGE\r\nWKi9UeJPlriLSaBchVLKKGO8W/4SQwOiQ5AHXh82Nh6n6p1HFiq6fa3Fxc/v\r\nmylMzYiYXdNUV/iVwSXTKGvxtp2qEQr0GQ73prMqJZOQF/engVgdrJLuKi10\r\n54g/ivRRRdZk9DrrdKOqdZhCojihyzsedizaLKz+mqNN+J38asVUJ8lNEicG\r\nKaf0g+GObmy+4XvtLr81BYaD3HKZOjGAVfhuvyfTZmM5LAEM4ZSd5cZyWF3I\r\n6qTRdyZ3SaIhZbOR23P9BMFO0YDvDjeEaiVEF/LFuDwnLjVYaf5bX19NPyge\r\nU0CrCQy8z3qGQ3mbcZG5B75wOd6zjL2auE8PdUmwRIUqg+vEu8AdDFM4JB4W\r\n8ROTNmrvsH9eE95/vhs46lpNAULtKxBUbzKS/DyQW14qzjF5C4/DFo6b4zh7\r\nJktkoCXIjbGWBs6NKInOILUUwyvIpHSaiqlzYdtxHDkwSTNM3Qw6xzMQNOzm\r\ns9CDByuj6EsqNAwAPQ0Ah3pOkycv07Yc3js=\r\n=pr53\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"coc":"^0.0.82"},"gitHead":"0fb5baedc2a266c9a67538336bd3e9eb313b62dc","scripts":{"prepare":"node esbuild.js"},"_npmUser":{"name":"ark7_inc","email":"yz@ark7.com"},"publisher":"chemzqm","repository":{"url":"git+https://github.com/neoclide/coc-tsserver.git","type":"git"},"_npmVersion":"8.1.2","contributes":{"commands":[{"title":"Reload current project","command":"tsserver.reloadProjects","category":"TSServer"},{"title":"Open log file of tsserver.","command":"tsserver.openTsServerLog","category":"TSServer"},{"title":"Open project config file.","command":"tsserver.goToProjectConfig","category":"TSServer"},{"title":"Restart tsserver","command":"tsserver.restart","category":"TSServer"},{"title":"Find File References","command":"tsserver.findAllFileReferences","category":"TSServer"},{"title":"Go to Source Definition","command":"tsserver.goToSourceDefinition","category":"TSServer"},{"title":"Run `tsc --watch` for current project by use vim's job feature.","command":"tsserver.watchBuild","category":"TSServer"},{"title":"Fix autofixable problems of current document.","command":"tsserver.executeAutofix","category":"TSServer"},{"title":"Choose different typescript version for current project","command":"tsserver.chooseVersion","category":"TSServer"}],"snippets":[{"path":"./snippets/typescript.json","language":"typescript"},{"path":"./snippets/typescript.json","language":"typescriptreact"},{"path":"./snippets/javascript.json","language":"javascript"},{"path":"./snippets/javascript.json","language":"javascriptreact"}],"rootPatterns":[{"filetype":"javascript","patterns":["package.json","jsconfig.json"]},{"filetype":"javascriptreact","patterns":["package.json","jsconfig.json"]},{"filetype":"typescript","patterns":["package.json","tsconfig.json"]},{"filetype":"typescriptreact","patterns":["package.json","tsconfig.json"]}],"configuration":{"type":"object","title":"Tsserver","properties":{"tsserver.log":{"enum":["normal","terse","verbose","off"],"type":"string","scope":"application","default":"off","description":"Log level of tsserver"},"tsserver.npm":{"type":"string","scope":"application","default":"","markdownDescription":"Specifies the path to the npm executable used for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition)."},"tsserver.tsdk":{"type":"string","scope":"resource","default":"","markdownDescription":"Specifies the folder path to the tsserver and `lib*.d.ts` files under a TypeScript install to use for IntelliSense, for example: `./node_modules/typescript/lib`.\n\n- When specified as a user setting, the TypeScript version from `tsserver.tsdk` automatically replaces the built-in TypeScript version.\n- When specified as a workspace setting, the tsserver is used when `tsserver.useLocalTsdk` is true.\nUse command `:CocCommand tsserver.chooseVersion` to choose different typescript version."},"tsserver.enable":{"type":"boolean","scope":"resource","default":true,"description":"Enable running of tsserver."},"tsserver.locale":{"enum":["auto","de","es","en","fr","it","ja","ko","ru","zh-CN","zh-TW"],"type":"string","scope":"window","default":"auto","markdownDescription":"Sets the locale used to report JavaScript and TypeScript errors. Defaults to use VS Code's locale."},"tsserver.pluginPaths":{"type":"array","items":{"type":"string","description":"Either an absolute or relative path. Relative path will be resolved against workspace folder(s)."},"scope":"machine","default":[],"description":"Additional paths to discover TypeScript Language Service plugins."},"javascript.showUnused":{"type":"boolean","scope":"resource","default":true,"description":"Show unused variable hint."},"tsserver.trace.server":{"enum":["off","messages","verbose"],"type":"string","scope":"application","default":"off","description":"Trace level of tsserver"},"tsserver.tsconfigPath":{"type":"string","scope":"resource","default":"tsconfig.json","description":"Path to tsconfig file for the `tsserver.watchBuild` command. Defaults to `tsconfig.json`."},"tsserver.useLocalTsdk":{"type":"boolean","scope":"resource","default":false,"description":"Use tsserver from typescript module in workspace folder, ignore tsserver.tsdk configuration."},"tsserver.watchOptions":{"type":"object","scope":"application","properties":{"watchFile":{"enum":["fixedPollingInterval","priorityPollingInterval","dynamicPriorityPolling","useFsEvents","useFsEventsOnParentDirectory"],"type":"string","default":"useFsEvents","description":"Strategy for how individual files are watched."},"watchDirectory":{"enum":["fixedPollingInterval","dynamicPriorityPolling","useFsEvents"],"type":"string","default":"useFsEvents","description":"Strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality."},"fallbackPolling":{"enum":["fixedPollingInterval","priorityPollingInterval","dynamicPriorityPolling"],"type":"string","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."},"synchronousWatchDirectory":{"type":"boolean","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."}},"description":"Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace."},"typescript.showUnused":{"type":"boolean","scope":"resource","default":true,"description":"Show unused variable hint."},"tsserver.enableTracing":{"type":"boolean","scope":"window","default":false,"description":"Enables tracing TS server performance to a directory. These trace files can be used to diagnose TS Server performance issues. The log may contain file paths, source code, and other potentially sensitive information from your project."},"javascript.format.enable":{"type":"boolean","scope":"window","default":true,"description":"Enable format for javascript."},"javascript.suggest.names":{"type":"boolean","scope":"language-overridable","default":true,"markdownDescription":"Enable/disable including unique names from the file in JavaScript suggestions. Note that name suggestions are always disabled in JavaScript code that is semantically checked using `@ts-check` or `checkJs`."},"javascript.suggest.paths":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable suggest paths in import statement and require calls"},"tsserver.useSyntaxServer":{"enum":["always","never","auto"],"type":"string","scope":"window","default":"auto","description":"Controls if TypeScript launches a dedicated server to more quickly handle syntax related operations, such as computing code folding.","enumDescriptions":["Use a lighter weight syntax server to handle all IntelliSense operations. This syntax server can only provide IntelliSense for opened files.","Don't use a dedicated syntax server. Use a single server to handle all IntelliSense operations.","Spawn both a full server and a lighter weight server dedicated to syntax operations. The syntax server is used to speed up syntax operations and provide IntelliSense while projects are loading."]},"typescript.format.enable":{"type":"boolean","scope":"window","default":true,"description":"Enable format for typescript."},"typescript.suggest.paths":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable suggest paths in import statement and require calls"},"javascript.showDeprecated":{"type":"boolean","scope":"resource","default":true,"description":"Show deprecated variable hint."},"typescript.showDeprecated":{"type":"boolean","scope":"resource","default":true,"description":"Show deprecated variable hint."},"javascript.autoClosingTags":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable automatic closing of JSX tags."},"javascript.suggest.enabled":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enabled/disable autocomplete suggestions."},"javascript.validate.enable":{"type":"boolean","scope":"window","default":true,"description":"Enable/disable JavaScript validation."},"tsserver.maxTsServerMemory":{"type":"number","scope":"application","default":3072,"description":"Set the maximum amount of memory to allocate to the TypeScript server process"},"typescript.autoClosingTags":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable automatic closing of JSX tags."},"typescript.suggest.enabled":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enabled/disable autocomplete suggestions."},"typescript.validate.enable":{"type":"boolean","scope":"window","default":true,"description":"Enable/disable TypeScript validation."},"javascript.format.semicolons":{"enum":["ignore","insert","remove"],"type":"string","scope":"resource","default":"ignore","description":"Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace."},"typescript.format.semicolons":{"enum":["ignore","insert","remove"],"type":"string","scope":"resource","default":"ignore","description":"Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace."},"javascript.suggest.autoImports":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable auto import suggests."},"typescript.suggest.autoImports":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable auto import suggests."},"typescript.check.npmIsInstalled":{"type":"boolean","scope":"window","default":true,"markdownDescription":"Check if npm is installed for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition)."},"javascript.preferences.quoteStyle":{"enum":["auto","single","double"],"type":"string","scope":"language-overridable","default":"auto","markdownDescription":"Preferred quote style to use for quick fixes.","markdownEnumDescriptions":["Infer quote type from existing code","Always use single quotes: `'`","Always use double quotes: `\"`"]},"javascript.suggest.completeJSDocs":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable suggestion to complete JSDoc comments."},"typescript.preferences.quoteStyle":{"enum":["auto","single","double"],"type":"string","scope":"language-overridable","default":"auto","markdownDescription":"Preferred quote style to use for quick fixes.","markdownEnumDescriptions":["Infer quote type from existing code","Always use single quotes: `'`","Always use double quotes: `\"`"]},"typescript.suggest.completeJSDocs":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable suggestion to complete JSDoc comments."},"typescript.workspaceSymbols.scope":{"enum":["allOpenProjects","currentProject"],"type":"string","scope":"window","default":"allOpenProjects","description":"Controls which files are searched by [go to symbol in workspace](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name).","enumDescriptions":["Search all open JavaScript or TypeScript projects for symbols. Requires using TypeScript 3.9 or newer in the workspace.","Only search for symbols in the current JavaScript or TypeScript project."]},"javascript.suggestionActions.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."},"tsserver.reportStyleChecksAsWarnings":{"type":"boolean","scope":"window","default":true,"description":"Report style checks as warnings."},"typescript.suggestionActions.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace."},"javascript.referencesCodeLens.enabled":{"type":"boolean","scope":"window","default":false,"description":"Enable/disable references CodeLens in JavaScript files."},"tsserver.implicitProjectConfig.module":{"enum":["CommonJS","AMD","System","UMD","ES6","ES2015","ES2020","ESNext","None","ES2022","Node12","NodeNext"],"type":"string","scope":"window","default":"ESNext","markdownDescription":"Sets the module system for the program. See more: https://www.typescriptlang.org/tsconfig#module."},"tsserver.implicitProjectConfig.target":{"enum":["ES3","ES5","ES6","ES2015","ES2016","ES2017","ES2018","ES2019","ES2020","ES2021","ES2022","ESNext"],"type":"string","scope":"window","default":"ES2020","markdownDescription":"Set target JavaScript language version for emitted JavaScript and include library declarations. See more: https://www.typescriptlang.org/tsconfig#target."},"typescript.referencesCodeLens.enabled":{"type":"boolean","scope":"window","default":false,"description":"Enable codeLens for references"},"tsserver.implicitProjectConfig.checkJs":{"type":"boolean","scope":"window","default":false,"description":"Enable checkJs for implicit project"},"javascript.suggest.completeFunctionCalls":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable snippet for method suggestion"},"javascript.suggest.jsdoc.generateReturns":{"type":"boolean","scope":"language-overridable","default":true,"markdownDescription":"Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace."},"tsserver.disableAutomaticTypeAcquisition":{"type":"boolean","scope":"window","default":false,"markdownDescription":"Disables [automatic type acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Automatic type acquisition fetches `@types` packages from npm to improve IntelliSense for external libraries."},"typescript.suggest.completeFunctionCalls":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable snippet for method suggestion"},"typescript.suggest.jsdoc.generateReturns":{"type":"boolean","scope":"language-overridable","default":true,"markdownDescription":"Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace."},"javascript.implementationsCodeLens.enabled":{"type":"boolean","scope":"window","default":false,"description":"Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface."},"javascript.updateImportsOnFileMove.enabled":{"enum":["prompt","always","never"],"type":"string","scope":"resource","default":"prompt","description":"Enable/disable automatic updating of import paths when you rename or move a file in VS Code.","markdownEnumDescriptions":["Prompt on each rename.","Always update paths automatically.","Never rename paths and don't prompt."]},"typescript.implementationsCodeLens.enabled":{"type":"boolean","scope":"window","default":false,"description":"Enable codeLens for implementations"},"typescript.updateImportsOnFileMove.enabled":{"enum":["prompt","always","never"],"type":"string","scope":"resource","default":"prompt","description":"Enable/disable automatic updating of import paths when you rename or move a file in VS Code.","markdownEnumDescriptions":["Prompt on each rename.","Always update paths automatically.","Never rename paths and don't prompt."]},"javascript.inlayHints.variableTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of variable types."},"javascript.preferences.useAliasesForRenames":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace."},"typescript.inlayHints.variableTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of variable types."},"typescript.preferences.useAliasesForRenames":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace."},"javascript.inlayHints.parameterNames.enabled":{"enum":["none","literals","all"],"type":"string","scope":"resource","default":"none","description":"Enable/disable inlay hints of parameter names.","enumDescriptions":["Disable parameter name hints.","Enable parameter name hints only for literal arguments.","Enable parameter name hints for literal and non-literal arguments."]},"javascript.inlayHints.parameterTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of parameter types."},"javascript.preferences.importModuleSpecifier":{"enum":["shortest","relative","non-relative","project-relative"],"type":"string","scope":"language-overridable","default":"shortest","description":"Preferred path style for auto imports.","enumDescriptions":["Prefers a non-relative import only if one is available that has fewer path segments than a relative import","Prefers a relative path to the imported file location","Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.","Prefers a non-relative import only if the relative import path would leave the package or project directory. Requires using TypeScript 4.2+ in the workspace."]},"typescript.inlayHints.parameterNames.enabled":{"enum":["none","literals","all"],"type":"string","scope":"resource","default":"none","description":"Enable/disable inlay hints of parameter names.","enumDescriptions":["Disable parameter name hints.","Enable parameter name hints only for literal arguments.","Enable parameter name hints for literal and non-literal arguments."]},"typescript.inlayHints.parameterTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of parameter types."},"typescript.preferences.importModuleSpecifier":{"enum":["shortest","relative","non-relative","project-relative"],"type":"string","scope":"window","default":"shortest","description":"Preferred path style for auto imports.","enumDescriptions":["Prefers a non-relative import only if one is available that has fewer path segments than a relative import","Prefers a relative path to the imported file location","Prefers a non-relative import based on the `baseUrl` or `paths` configured in your `jsconfig.json` / `tsconfig.json`.","Prefers a non-relative import only if the relative import path would leave the package or project directory. Requires using TypeScript 4.2+ in the workspace."]},"javascript.format.insertSpaceAfterConstructor":{"type":"boolean","scope":"resource","default":false},"typescript.format.insertSpaceAfterConstructor":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after the constructor keyword."},"javascript.inlayHints.enumMemberValues.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of enum member values."},"javascript.suggest.classMemberSnippets.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace"},"tsserver.experimental.enableProjectDiagnostics":{"tags":["experimental"],"type":"boolean","scope":"window","default":false,"description":"(Experimental) Enables project wide error reporting."},"typescript.inlayHints.enumMemberValues.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of enum member values."},"typescript.suggest.classMemberSnippets.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace"},"javascript.format.insertSpaceAfterTypeAssertion":{"type":"boolean","scope":"resource","default":false},"tsserver.implicitProjectConfig.strictNullChecks":{"type":"boolean","scope":"window","default":true,"markdownDescription":"Enable/disable [strict null checks](https://www.typescriptlang.org/tsconfig#strictNullChecks) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting."},"typescript.format.insertSpaceAfterTypeAssertion":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after type assertions in TypeScript."},"javascript.format.insertSpaceAfterCommaDelimiter":{"type":"boolean","scope":"resource","default":true},"javascript.preferences.renameShorthandProperties":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.","deprecationMessage":"The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'"},"javascript.referencesCodeLens.showOnAllFunctions":{"type":"boolean","scope":"window","default":false,"description":"Enable/disable references CodeLens on all functions in JavaScript files."},"typescript.format.insertSpaceAfterCommaDelimiter":{"type":"boolean","scope":"resource","default":true,"description":"Defines space handling after a comma delimiter."},"typescript.preferences.renameShorthandProperties":{"type":"boolean","scope":"language-overridable","default":true,"description":"Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace.","deprecationMessage":"The setting 'typescript.preferences.renameShorthandProperties' has been deprecated in favor of 'typescript.preferences.useAliasesForRenames'"},"typescript.referencesCodeLens.showOnAllFunctions":{"type":"boolean","scope":"window","default":false,"description":"Enable/disable references CodeLens on all functions in typescript files."},"javascript.preferences.importModuleSpecifierEnding":{"enum":["auto","minimal","index","js"],"type":"string","scope":"language-overridable","default":"auto","description":"Preferred path ending for auto imports."},"javascript.preferences.jsxAttributeCompletionStyle":{"enum":["auto","braces","none"],"type":"string","scope":"language-overridable","default":"auto","description":"Preferred style for JSX attribute completions.","markdownEnumDescriptions":["Insert `={}` or `=\"\"` after attribute names based on the prop type.","Insert `={}` after attribute names.","Only insert attribute names."]},"tsserver.implicitProjectConfig.strictFunctionTypes":{"type":"boolean","scope":"window","default":true,"markdownDescription":"Enable/disable [strict function types](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting."},"typescript.preferences.importModuleSpecifierEnding":{"enum":["auto","minimal","index","js"],"type":"string","scope":"resource","default":"auto","description":"Preferred path ending for auto imports."},"typescript.preferences.jsxAttributeCompletionStyle":{"enum":["auto","braces","none"],"type":"string","scope":"resource","default":"auto","description":"Preferred style for JSX attribute completions.","markdownEnumDescriptions":["Insert `={}` or `=\"\"` after attribute names based on the prop type.","Insert `={}` after attribute names.","Only insert attribute names."]},"javascript.preferences.autoImportFileExcludePatterns":{"type":"array","items":{"type":"string"},"scope":"resource","markdownDescription":"Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace."},"typescript.preferences.autoImportFileExcludePatterns":{"type":"array","items":{"type":"string"},"scope":"resource","markdownDescription":"Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace."},"typescript.preferences.includePackageJsonAutoImports":{"enum":["auto","on","off"],"type":"string","scope":"window","default":"auto","enumDescriptions":["Search dependencies based on estimated performance impact.","Always search dependencies.","Never search dependencies."],"markdownDescription":"Enable/disable searching `package.json` dependencies for available auto imports."},"typescript.suggest.includeCompletionsWithSnippetText":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable snippet completions from TS Server. Requires using TypeScript 4.3+ in the workspace."},"javascript.format.placeOpenBraceOnNewLineForFunctions":{"type":"boolean","scope":"resource","default":false},"javascript.inlayHints.functionLikeReturnTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of return type for function signatures."},"tsserver.implicitProjectConfig.experimentalDecorators":{"type":"boolean","scope":"window","default":false,"description":"Enable experimentalDecorators for implicit project"},"typescript.format.placeOpenBraceOnNewLineForFunctions":{"type":"boolean","scope":"resource","default":false,"description":"Defines whether an open brace is put onto a new line for functions or not."},"typescript.inlayHints.functionLikeReturnTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of return type for function signatures."},"javascript.format.insertSpaceBeforeFunctionParenthesis":{"type":"boolean","scope":"resource","default":false},"javascript.inlayHints.propertyDeclarationTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of property declarations."},"javascript.suggest.objectLiteralMethodSnippets.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable snippet completions for methods in object literals. Requires using TypeScript 4.7+ in the workspace"},"typescript.format.insertSpaceBeforeFunctionParenthesis":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling before function argument parentheses."},"typescript.inlayHints.propertyDeclarationTypes.enabled":{"type":"boolean","scope":"resource","default":false,"description":"Enable/disable inlay hints of property declarations."},"typescript.suggest.objectLiteralMethodSnippets.enabled":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable snippet completions for methods in object literals. Requires using TypeScript 4.7+ in the workspace"},"javascript.suggest.includeCompletionsForImportStatements":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace."},"typescript.suggest.includeCompletionsForImportStatements":{"type":"boolean","scope":"resource","default":true,"description":"Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace."},"javascript.format.placeOpenBraceOnNewLineForControlBlocks":{"type":"boolean","scope":"resource","default":false},"typescript.format.placeOpenBraceOnNewLineForControlBlocks":{"type":"boolean","scope":"resource","default":false,"description":"Defines whether an open brace is put onto a new line for control blocks or not."},"javascript.format.insertSpaceAfterSemicolonInForStatements":{"type":"boolean","scope":"resource","default":true},"javascript.format.insertSpaceBeforeAndAfterBinaryOperators":{"type":"boolean","scope":"resource","default":true},"typescript.format.insertSpaceAfterSemicolonInForStatements":{"type":"boolean","scope":"resource","default":true,"description":"Defines space handling after a semicolon in a for statement."},"typescript.format.insertSpaceBeforeAndAfterBinaryOperators":{"type":"boolean","scope":"resource","default":true,"description":"Defines space handling after a binary operator."},"javascript.suggest.includeAutomaticOptionalChainCompletions":{"type":"boolean","scope":"resource","default":true,"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."},"typescript.suggest.includeAutomaticOptionalChainCompletions":{"type":"boolean","scope":"language-overridable","default":true,"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."},"javascript.inlayHints.variableTypes.suppressWhenTypeMatchesName":{"type":"boolean","scope":"resource","default":true,"markdownDescription":"Suppress type hints on variables whose name is identical to the type name. Requires using TypeScript 4.8+ in the workspace."},"typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName":{"type":"boolean","scope":"resource","default":true,"markdownDescription":"Suppress type hints on variables whose name is identical to the type name. Requires using TypeScript 4.8+ in the workspace."},"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements":{"type":"boolean","scope":"resource","default":true},"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements":{"type":"boolean","scope":"resource","default":true,"description":"Defines space handling after keywords in a control flow statement."},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces":{"type":"boolean","scope":"resource","default":false},"javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName":{"type":"boolean","scope":"resource","default":true,"description":"Suppress parameter name hints on arguments whose text is identical to the parameter name."},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing empty braces."},"typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName":{"type":"boolean","scope":"resource","default":true,"description":"Suppress parameter name hints on arguments whose text is identical to the parameter name."},"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions":{"type":"boolean","scope":"resource","default":true},"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions":{"type":"boolean","scope":"resource","default":true,"description":"Defines space handling after function keyword for anonymous functions."},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces":{"type":"boolean","scope":"resource","default":false},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing non-empty braces."},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets":{"type":"boolean","scope":"resource","default":false},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing non-empty brackets."},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces":{"type":"boolean","scope":"resource","default":false},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis":{"type":"boolean","scope":"resource","default":false},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing JSX expression braces."},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing non-empty parenthesis."},"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces":{"type":"boolean","scope":"resource","default":false},"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces":{"type":"boolean","scope":"resource","default":false,"description":"Defines space handling after opening and before closing template string braces."}}}},"description":"tsserver extension for coc.nvim","directories":{},"_nodeVersion":"16.13.2","dependencies":{"typescript":"^4.9.3"},"_hasShrinkwrap":false,"devDependencies":{"which":"^2.0.2","semver":"^7.3.7","esbuild":"^0.15.13","coc.nvim":"^0.0.83-next.11","strip-ansi":"^7.0.1","@types/node":"^14.14","vscode-languageserver-protocol":"^3.17.2"},"activationEvents":["onLanguage:javascript","onLanguage:javascriptreact","onLanguage:javascript.jsx","onLanguage:typescript","onLanguage:typescript.tsx","onLanguage:typescript.jsx","onLanguage:typescriptreact","onLanguage:jsx-tags","onLanguage:jsonc","onCommand:_typescript.configurePlugin","onCommand:tsserver.reloadProjects","onCommand:tsserver.goToProjectConfig","onCommand:tsserver.openTsServerLog","onCommand:tsserver.goToSourceDefinition","onCommand:tsserver.watchBuild"],"_npmOperationalInternal":{"tmp":"tmp/coc-tsserver_2.1.3_1677404761416_0.5774968526204076","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-02-26T09:46:01.356Z","modified":"2026-03-10T18:53:33.883Z","2.1.3":"2023-02-26T09:46:01.591Z"},"bugs":{"url":"https://github.com/neoclide/coc-tsserver/issues"},"author":{"name":"chemzqm@gmail.com"},"license":"MIT","homepage":"https://github.com/neoclide/coc-tsserver#readme","keywords":["coc.nvim","tsserver","typescript","javascript"],"repository":{"url":"git+https://github.com/neoclide/coc-tsserver.git","type":"git"},"description":"tsserver extension for coc.nvim","maintainers":[{"email":"yz@ark7.com","name":"ark7_inc"},{"email":"james@ark7.com","name":"jamesweng9986"}],"readme":"# coc-tsserver\n\nTsserver language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim).\n\nTsserver is part of [TypeScript](https://github.com/microsoft/TypeScript) which\nprovide rich language features for javascript and typescript.\n\nThis extension is a fork of `typescript-language-features` extension which is\nbundled with VSCode. File type detect and syntax highlight are not supported by\nthis extension, use other vim plugin instead.\n\n**Important note:** from v2.0.0, tsserver module resolved first from global\nconfiguration `tsserver.tsdk` and use bundled module when not found, if\n`tsserver.useLocalTsdk` is enabled, workspace folder configured `tsserver.tsdk`\nor typescript module inside current workspace folder would be used when exists.\n\n## Install\n\nIn your vim/neovim, run command:\n\n`:CocInstall coc-tsserver`\n\nFor yarn2 ( >= v2.0.0-rc.36) user want to use local typescript module:\n\n- Run command `yarn dlx @yarnpkg/sdks vim`, which will generate\n  `.vim/coc-settings.json`, with content:\n\n  ```json\n  {\n    \"eslint.packageManager\": \"yarn\",\n    \"eslint.nodePath\": \".yarn/sdks\",\n    \"workspace.workspaceFolderCheckCwd\": false,\n    \"tsserver.tsdk\": \".yarn/sdks/typescript/lib\"\n  }\n  ```\n\n## Features\n\nAlmost the same as VSCode.\n\n- Supports javascript & typescript and jsx/tsx.\n- Installs typings automatically.\n- Commands to work with tsserver, including:\n  - `tsserver.reloadProjects`\n  - `tsserver.openTsServerLog`\n  - `tsserver.goToProjectConfig`\n  - `tsserver.restart`\n  - `tsserver.watchBuild`\n  - `tsserver.findAllFileReferences`\n- Code completion support.\n- Go to definition (more info in [microsoft/TypeScript#37777](https://github.com/microsoft/TypeScript/issues/37777))\n- Code validation.\n- Document highlight.\n- Document symbols of current buffer.\n- Folding and folding range of current buffer.\n- Format current buffer, range format and format on type.\n- Hover for documentation.\n- Implementations codeLens and references codeLens.\n- Organize imports command.\n- Quickfix using code actions.\n- Code refactor using code actions.\n- Source code action, including:\n  - Fix all fixable JS/TS issues.\n  - Remove all unused code.\n  - Add all missing imports.\n  - Organize Imports.\n  - Sort Imports.\n  - Remove Unused Imports\n- Find references.\n- Signature help.\n- Call hierarchy.\n- Selection range.\n- Semantic tokens.\n- Rename symbols support.\n- Automatic tag closing.\n- Rename imports on file rename, require\n  [watchman](https://facebook.github.io/watchman/) installed in your \\$PATH.\n- Search for workspace symbols.\n- Inlay hints support using virtual text feature of neovim, which requires:\n  - TypeScript >= 4.4.0\n  - Neovim >= 0.4.0\n  - Enabled by options starts with `typescript.inlayHints` or\n    `javascript.inlayHints`.\n\n~Tsserver module first resolved from your local workspace. If it's not found, use\ntsserver from `tsserver.tsdk` configuration or use bundled tsserver with this\nextension.~\n\n## Commands\n\nCommands contributed to `:CocList commands`\n\n- `tsserver.reloadProjects` Reload current project\n- `tsserver.openTsServerLog` Open log file of tsserver.\n- `tsserver.goToProjectConfig` Open project config file.\n- `tsserver.restart` Restart tsserver\n- `tsserver.findAllFileReferences` Find File References\n- `tsserver.goToSourceDefinition` Go to Source Definition\n- `tsserver.watchBuild` Run `tsc --watch` for current project by use vim's job feature.\n- `tsserver.executeAutofix` Fix autofixable problems of current document.\n- `tsserver.chooseVersion` Choose different typescript version for current project.\n\n## Configuration options\n\nCheckout `:h coc-configuration` for guide of coc.nvim's configuration.\n\n- `tsserver.enable`: Enable running of tsserver. Default: `true`\n- `tsserver.tsconfigPath`: Path to tsconfig file for the `tsserver.watchBuild` command. Default: `\"tsconfig.json\"`\n- `tsserver.locale`: Sets the locale used to report JavaScript and TypeScript errors. Defaults to use VS Code's locale. Default: `\"auto\"`\n  Valid options: [\"auto\",\"de\",\"es\",\"en\",\"fr\",\"it\",\"ja\",\"ko\",\"ru\",\"zh-CN\",\"zh-TW\"]\n- `tsserver.useLocalTsdk`: Use tsserver from typescript module in workspace folder, ignore tsserver.tsdk configuration. Default: `false`\n- `tsserver.maxTsServerMemory`: Set the maximum amount of memory to allocate to the TypeScript server process Default: `3072`\n- `tsserver.watchOptions`: Configure which watching strategies should be used to keep track of files and directories. Requires using TypeScript 3.8+ in the workspace.\n- `tsserver.tsdk`: Specifies the folder path to the tsserver and `lib*.d.ts` files under a TypeScript install to use for IntelliSense, for example: `./node_modules/typescript/lib`. - When specified as a user setting, the TypeScript version from `tsserver.tsdk` automatically replaces the built-in TypeScript version. - When specified as a workspace setting, the tsserver is used when `tsserver.useLocalTsdk` is true. Use command `:CocCommand tsserver.chooseVersion` to choose different typescript version. Default: `\"\"`\n- `tsserver.npm`: Specifies the path to the npm executable used for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Default: `\"\"`\n- `tsserver.log`: Log level of tsserver Default: `\"off\"`\n  Valid options: [\"normal\",\"terse\",\"verbose\",\"off\"]\n- `tsserver.trace.server`: Trace level of tsserver Default: `\"off\"`\n  Valid options: [\"off\",\"messages\",\"verbose\"]\n- `tsserver.enableTracing`: Enables tracing TS server performance to a directory. These trace files can be used to diagnose TS Server performance issues. The log may contain file paths, source code, and other potentially sensitive information from your project. Default: `false`\n- `tsserver.pluginPaths`: Additional paths to discover TypeScript Language Service plugins. Default: `[]`\n- `tsserver.reportStyleChecksAsWarnings`: Report style checks as warnings. Default: `true`\n- `tsserver.implicitProjectConfig.checkJs`: Enable checkJs for implicit project Default: `false`\n- `tsserver.implicitProjectConfig.module`: Sets the module system for the program. See more: https://www.typescriptlang.org/tsconfig#module. Default: `\"ESNext\"`\n  Valid options: [\"CommonJS\",\"AMD\",\"System\",\"UMD\",\"ES6\",\"ES2015\",\"ES2020\",\"ESNext\",\"None\",\"ES2022\",\"Node12\",\"NodeNext\"]\n- `tsserver.implicitProjectConfig.target`: Set target JavaScript language version for emitted JavaScript and include library declarations. See more: https://www.typescriptlang.org/tsconfig#target. Default: `\"ES2020\"`\n  Valid options: [\"ES3\",\"ES5\",\"ES6\",\"ES2015\",\"ES2016\",\"ES2017\",\"ES2018\",\"ES2019\",\"ES2020\",\"ES2021\",\"ES2022\",\"ESNext\"]\n- `tsserver.implicitProjectConfig.strictNullChecks`: Enable/disable [strict null checks](https://www.typescriptlang.org/tsconfig#strictNullChecks) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting. Default: `true`\n- `tsserver.implicitProjectConfig.strictFunctionTypes`: Enable/disable [strict function types](https://www.typescriptlang.org/tsconfig#strictFunctionTypes) in JavaScript and TypeScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting. Default: `true`\n- `tsserver.implicitProjectConfig.experimentalDecorators`: Enable experimentalDecorators for implicit project Default: `false`\n- `tsserver.disableAutomaticTypeAcquisition`: Disables [automatic type acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Automatic type acquisition fetches `@types` packages from npm to improve IntelliSense for external libraries. Default: `false`\n- `tsserver.useSyntaxServer`: Controls if TypeScript launches a dedicated server to more quickly handle syntax related operations, such as computing code folding. Default: `\"auto\"`\n  Valid options: [\"always\",\"never\",\"auto\"]\n- `tsserver.experimental.enableProjectDiagnostics`: (Experimental) Enables project wide error reporting. Default: `false`\n- `typescript.check.npmIsInstalled`: Check if npm is installed for [Automatic Type Acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Default: `true`\n- `typescript.showUnused`: Show unused variable hint. Default: `true`\n- `typescript.showDeprecated`: Show deprecated variable hint. Default: `true`\n- `typescript.updateImportsOnFileMove.enabled`: Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Default: `\"prompt\"`\n  Valid options: [\"prompt\",\"always\",\"never\"]\n- `typescript.implementationsCodeLens.enabled`: Enable codeLens for implementations Default: `false`\n- `typescript.referencesCodeLens.enabled`: Enable codeLens for references Default: `false`\n- `typescript.referencesCodeLens.showOnAllFunctions`: Enable/disable references CodeLens on all functions in typescript files. Default: `false`\n- `typescript.preferences.importModuleSpecifier`: Preferred path style for auto imports. Default: `\"shortest\"`\n  Valid options: [\"shortest\",\"relative\",\"non-relative\",\"project-relative\"]\n- `typescript.preferences.importModuleSpecifierEnding`: Preferred path ending for auto imports. Default: `\"auto\"`\n  Valid options: [\"auto\",\"minimal\",\"index\",\"js\"]\n- `typescript.preferences.jsxAttributeCompletionStyle`: Preferred style for JSX attribute completions. Default: `\"auto\"`\n  Valid options: [\"auto\",\"braces\",\"none\"]\n- `typescript.preferences.includePackageJsonAutoImports`: Enable/disable searching `package.json` dependencies for available auto imports. Default: `\"auto\"`\n  Valid options: [\"auto\",\"on\",\"off\"]\n- `typescript.preferences.quoteStyle`: Preferred quote style to use for quick fixes. Default: `\"auto\"`\n  Valid options: [\"auto\",\"single\",\"double\"]\n- `typescript.preferences.useAliasesForRenames`: Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace. Default: `true`\n- `typescript.preferences.autoImportFileExcludePatterns`: Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.\n- `typescript.preferences.renameShorthandProperties`: Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace. Default: `true`\n- `typescript.suggestionActions.enabled`: Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace. Default: `true`\n- `typescript.validate.enable`: Enable/disable TypeScript validation. Default: `true`\n- `typescript.suggest.enabled`: Enabled/disable autocomplete suggestions. Default: `true`\n- `typescript.suggest.paths`: Enable/disable suggest paths in import statement and require calls Default: `true`\n- `typescript.suggest.autoImports`: Enable/disable auto import suggests. Default: `true`\n- `typescript.suggest.completeFunctionCalls`: Enable snippet for method suggestion Default: `true`\n- `typescript.suggest.includeCompletionsForImportStatements`: Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace. Default: `true`\n- `typescript.suggest.includeCompletionsWithSnippetText`: Enable/disable snippet completions from TS Server. Requires using TypeScript 4.3+ in the workspace. Default: `true`\n- `typescript.suggest.classMemberSnippets.enabled`: Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace Default: `true`\n- `typescript.suggest.jsdoc.generateReturns`: Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace. Default: `true`\n- `typescript.format.enable`: Enable format for typescript. Default: `true`\n- `typescript.format.insertSpaceAfterCommaDelimiter`: Defines space handling after a comma delimiter. Default: `true`\n- `typescript.format.insertSpaceAfterConstructor`: Defines space handling after the constructor keyword. Default: `false`\n- `typescript.format.insertSpaceAfterSemicolonInForStatements`: Defines space handling after a semicolon in a for statement. Default: `true`\n- `typescript.format.insertSpaceBeforeAndAfterBinaryOperators`: Defines space handling after a binary operator. Default: `true`\n- `typescript.format.insertSpaceAfterKeywordsInControlFlowStatements`: Defines space handling after keywords in a control flow statement. Default: `true`\n- `typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions`: Defines space handling after function keyword for anonymous functions. Default: `true`\n- `typescript.format.insertSpaceBeforeFunctionParenthesis`: Defines space handling before function argument parentheses. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`: Defines space handling after opening and before closing non-empty parenthesis. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`: Defines space handling after opening and before closing non-empty brackets. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`: Defines space handling after opening and before closing empty braces. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`: Defines space handling after opening and before closing non-empty braces. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`: Defines space handling after opening and before closing template string braces. Default: `false`\n- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`: Defines space handling after opening and before closing JSX expression braces. Default: `false`\n- `typescript.format.insertSpaceAfterTypeAssertion`: Defines space handling after type assertions in TypeScript. Default: `false`\n- `typescript.format.placeOpenBraceOnNewLineForFunctions`: Defines whether an open brace is put onto a new line for functions or not. Default: `false`\n- `typescript.format.placeOpenBraceOnNewLineForControlBlocks`: Defines whether an open brace is put onto a new line for control blocks or not. Default: `false`\n- `typescript.format.semicolons`: Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace. Default: `\"ignore\"`\n  Valid options: [\"ignore\",\"insert\",\"remove\"]\n- `typescript.suggest.includeAutomaticOptionalChainCompletions`: 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. Default: `true`\n- `typescript.workspaceSymbols.scope`: Controls which files are searched by [go to symbol in workspace](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name). Default: `\"allOpenProjects\"`\n  Valid options: [\"allOpenProjects\",\"currentProject\"]\n- `typescript.autoClosingTags`: Enable/disable automatic closing of JSX tags. Default: `true`\n- `javascript.showUnused`: Show unused variable hint. Default: `true`\n- `javascript.showDeprecated`: Show deprecated variable hint. Default: `true`\n- `javascript.updateImportsOnFileMove.enabled`: Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Default: `\"prompt\"`\n  Valid options: [\"prompt\",\"always\",\"never\"]\n- `javascript.implementationsCodeLens.enabled`: Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface. Default: `false`\n- `javascript.referencesCodeLens.enabled`: Enable/disable references CodeLens in JavaScript files. Default: `false`\n- `javascript.referencesCodeLens.showOnAllFunctions`: Enable/disable references CodeLens on all functions in JavaScript files. Default: `false`\n- `javascript.preferences.importModuleSpecifier`: Preferred path style for auto imports. Default: `\"shortest\"`\n  Valid options: [\"shortest\",\"relative\",\"non-relative\",\"project-relative\"]\n- `javascript.preferences.importModuleSpecifierEnding`: Preferred path ending for auto imports. Default: `\"auto\"`\n  Valid options: [\"auto\",\"minimal\",\"index\",\"js\"]\n- `javascript.preferences.jsxAttributeCompletionStyle`: Preferred style for JSX attribute completions. Default: `\"auto\"`\n  Valid options: [\"auto\",\"braces\",\"none\"]\n- `javascript.preferences.quoteStyle`: Preferred quote style to use for quick fixes. Default: `\"auto\"`\n  Valid options: [\"auto\",\"single\",\"double\"]\n- `javascript.preferences.useAliasesForRenames`: Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace. Default: `true`\n- `javascript.preferences.autoImportFileExcludePatterns`: Specify glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.\n- `javascript.preferences.renameShorthandProperties`: Enable/disable introducing aliases for object shorthand properties during renames. Requires using TypeScript 3.4 or newer in the workspace. Default: `true`\n- `javascript.validate.enable`: Enable/disable JavaScript validation. Default: `true`\n- `javascript.suggestionActions.enabled`: Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace. Default: `true`\n- `javascript.suggest.names`: Enable/disable including unique names from the file in JavaScript suggestions. Note that name suggestions are always disabled in JavaScript code that is semantically checked using `@ts-check` or `checkJs`. Default: `true`\n- `javascript.suggest.enabled`: Enabled/disable autocomplete suggestions. Default: `true`\n- `javascript.suggest.paths`: Enable/disable suggest paths in import statement and require calls Default: `true`\n- `javascript.suggest.autoImports`: Enable/disable auto import suggests. Default: `true`\n- `javascript.suggest.completeFunctionCalls`: Enable snippet for method suggestion Default: `true`\n- `javascript.suggest.includeCompletionsForImportStatements`: Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace. Default: `true`\n- `javascript.suggest.classMemberSnippets.enabled`: Enable/disable snippet completions for class members. Requires using TypeScript 4.5+ in the workspace Default: `true`\n- `javascript.suggest.jsdoc.generateReturns`: Enable/disable generating `@return` annotations for JSDoc templates. Requires using TypeScript 4.2+ in the workspace. Default: `true`\n- `javascript.format.enable`: Enable format for javascript. Default: `true`\n- `javascript.format.insertSpaceAfterCommaDelimiter`: Default: `true`\n- `javascript.format.insertSpaceAfterConstructor`: Default: `false`\n- `javascript.format.insertSpaceAfterSemicolonInForStatements`: Default: `true`\n- `javascript.format.insertSpaceBeforeAndAfterBinaryOperators`: Default: `true`\n- `javascript.format.insertSpaceAfterKeywordsInControlFlowStatements`: Default: `true`\n- `javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions`: Default: `true`\n- `javascript.format.insertSpaceBeforeFunctionParenthesis`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`: Default: `false`\n- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`: Default: `false`\n- `javascript.format.insertSpaceAfterTypeAssertion`: Default: `false`\n- `javascript.format.placeOpenBraceOnNewLineForFunctions`: Default: `false`\n- `javascript.format.placeOpenBraceOnNewLineForControlBlocks`: Default: `false`\n- `javascript.suggest.includeAutomaticOptionalChainCompletions`: 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. Default: `true`\n- `typescript.inlayHints.parameterNames.enabled`: Enable/disable inlay hints of parameter names. Default: `\"none\"`\n  Valid options: [\"none\",\"literals\",\"all\"]\n- `typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName`: Suppress parameter name hints on arguments whose text is identical to the parameter name. Default: `true`\n- `typescript.inlayHints.parameterTypes.enabled`: Enable/disable inlay hints of parameter types. Default: `false`\n- `typescript.inlayHints.variableTypes.enabled`: Enable/disable inlay hints of variable types. Default: `false`\n- `typescript.inlayHints.propertyDeclarationTypes.enabled`: Enable/disable inlay hints of property declarations. Default: `false`\n- `typescript.inlayHints.functionLikeReturnTypes.enabled`: Enable/disable inlay hints of return type for function signatures. Default: `false`\n- `typescript.inlayHints.enumMemberValues.enabled`: Enable/disable inlay hints of enum member values. Default: `false`\n- `typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName`: Suppress type hints on variables whose name is identical to the type name. Requires using TypeScript 4.8+ in the workspace. Default: `true`\n- `javascript.inlayHints.parameterNames.enabled`: Enable/disable inlay hints of parameter names. Default: `\"none\"`\n  Valid options: [\"none\",\"literals\",\"all\"]\n- `javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName`: Suppress parameter name hints on arguments whose text is identical to the parameter name. Default: `true`\n- `javascript.inlayHints.parameterTypes.enabled`: Enable/disable inlay hints of parameter types. Default: `false`\n- `javascript.inlayHints.variableTypes.enabled`: Enable/disable inlay hints of variable types. Default: `false`\n- `javascript.inlayHints.propertyDeclarationTypes.enabled`: Enable/disable inlay hints of property declarations. Default: `false`\n- `javascript.inlayHints.functionLikeReturnTypes.enabled`: Enable/disable inlay hints of return type for function signatures. Default: `false`\n- `javascript.inlayHints.enumMemberValues.enabled`: Enable/disable inlay hints of enum member values. Default: `false`\n- `javascript.inlayHints.variableTypes.suppressWhenTypeMatchesName`: Suppress type hints on variables whose name is identical to the type name. Requires using TypeScript 4.8+ in the workspace. Default: `true`\n- `javascript.autoClosingTags`: Enable/disable automatic closing of JSX tags. Default: `true`\n- `javascript.format.semicolons`: Defines handling of optional semicolons. Requires using TypeScript 3.7 or newer in the workspace. Default: `\"ignore\"`\n  Valid options: [\"ignore\",\"insert\",\"remove\"]\n- `javascript.suggest.completeJSDocs`: Enable/disable suggestion to complete JSDoc comments. Default: `true`\n- `typescript.suggest.completeJSDocs`: Enable/disable suggestion to complete JSDoc comments. Default: `true`\n- `javascript.suggest.objectLiteralMethodSnippets.enabled`: Enable/disable snippet completions for methods in object literals. Requires using TypeScript 4.7+ in the workspace Default: `true`\n- `typescript.suggest.objectLiteralMethodSnippets.enabled`: Enable/disable snippet completions for methods in object literals. Requires using TypeScript 4.7+ in the workspace Default: `true`\n\nMost Configurations are the same as with VSCode. Install\n[coc-json](https://github.com/neoclide/coc-json) and try completion with\n`tsserver`, `typescript` or `javascript` in your\n`coc-settings.json`.\n\n### Differences between VSCode\n\nAdded configurations by coc-tsserver:\n\n- `tsserver.useLocalTsdk` only works when used as workspace folder configuration.\n- `tsserver.tsconfigPath`\n- `tsserver.enable`\n\nRemoved configurations:\n\n- `typescript.tsserver.useSeparateSyntaxServer` Use `tsserver.useSyntaxServer` instead.\n- `typescript.enablePromptUseWorkspaceTsdk` No propmpts given.\n- `typescript.tsc.autoDetect` Used for task, no such feature.\n- `typescript.surveys.enabled` No such feature.\n\nRenamed configurations to use `tsserver` as prefix:\n\n- `typescript.tsdk` => `tsserver.tsdk`\n- `typescript.disableAutomaticTypeAcquisition` => `tsserver.disableAutomaticTypeAcquisition`\n- `typescript.npm` => `tsserver.npm`\n- `typescript.locale` => `tsserver.locale`\n- `typescript.tsserver.maxTsServerMemory` => `tsserver.maxTsServerMemory`\n- `typescript.tsserver.watchOptions` => `tsserver.watchOptions`\n- `typescript.tsserver.useSyntaxServer` => `tsserver.useSyntaxServer`\n- `typescript.tsserver.log` => `tsserver.log`\n- `typescript.tsserver.trace` => `tsserver.trace.server`\n- `typescript.tsserver.enableTracing` => `tsserver.enableTracing`\n- `typescript.tsserver.pluginPaths` => `tsserver.pluginPaths`\n- `typescript.reportStyleChecksAsWarnings` => `tsserver.reportStyleChecksAsWarnings`\n- `js/ts.implicitProjectConfig.checkJs` => `tsserver.implicitProjectConfig.checkJs`\n- `js/ts.implicitProjectConfig.experimentalDecorators` => `tsserver.implicitProjectConfig.experimentalDecorators`\n- `js/ts.implicitProjectConfig.module` => `tsserver.implicitProjectConfig.module`\n- `js/ts.implicitProjectConfig.target` => `tsserver.implicitProjectConfig.target`\n- `js/ts.implicitProjectConfig.strictNullChecks` => `tsserver.implicitProjectConfig.strictNullChecks`\n- `js/ts.implicitProjectConfig.strictFunctionTypes` => `tsserver.implicitProjectConfig.strictFunctionTypes`\n- `typescript.tsserver.experimental.enableProjectDiagnostics` => `tsserver.experimental.enableProjectDiagnostics`\n\n## Related extensions\n\n- [coc-eslint](https://github.com/neoclide/coc-eslint): enable [eslint](https://github.com/eslint/eslint) plugin for tsserver to lint TypeScript and JavaScript files.\n- [coc-tslint-plugin](https://github.com/neoclide/coc-tslint-plugin): enable [tslint](https://github.com/palantir/tslint) plugin for tsserver ([deprecated](https://github.com/palantir/tslint/issues/4534)).\n- [coc-styled-components](https://github.com/fannheyward/coc-styled-components/): Styled component for coc.nvim as a tsserver plugin.\n- [coc-react-refactor](https://github.com/fannheyward/coc-react-refactor): React refactor extension for coc.nvim, forked from vscode-react-refactor.\n- [coc-vetur](https://github.com/neoclide/coc-vetur): [vue](https://github.com/vuejs/vue) extension.\n- [coc-angular](https://github.com/iamcco/coc-angular): [angular](https://github.com/angular/angular) extension.\n\n## Troubleshooting\n\n- Add `\"tsserver.log\": \"verbose\"` to your `coc-settings.json` (opened by command\n  `:CocConfig`)\n- To trace LSP communication, add `\"tsserver.trace.server\": \"verbose\"` to your\n  `coc-settings.json`\n- Restart coc server by command `:CocRestart`\n- Make the issue happen.\n- Open tsserver log file by command `CocCommand tsserver.openTsServerLog`\n- Open tsserver output channel by command `CocCommand workspace.showOutput tsserver`\n\nIf you find any issues, please [create an\nissue](https://github.com/neoclide/coc-tsserver/issues/new).\n\n## Q & A\n\nQ: Automatic type acquisition not work.\n\nA: configure `tsserver.npm` to your global npm path or configure\n`\"tsserver.disableAutomaticTypeAcquisition\": false` to disable automatic typings\ninstallation.\n\nQ: The extension needs some time to work.\n\nA: The initialize of tsserver requires some time, you can add `g:coc_status` to\nyour status line, see `:h coc-status`. If your tsserver get slow, try exclude\nunnecessary files in your jsconfig.json/tsconfig.json, make sure typescript\nversion > 4.9 and disable logging (disabled by default).\n\nQ: Update import on file rename not work.\n\nA: Make sure install [watchman](https://facebook.github.io/watchman/) in your\n\\$PATH. Use command `:CocCommand workspace.showOutput watchman` to check\nwatchman output.\n\nQ: Not work with buffer just created.\n\nA: Tsserver treat buffer without a disk file belongs to implicit project, VSCode\ncould work because VSCode create empty file first for buffer, save the buffer to\ndisk to make tsserver work.\n\nQ: Not work with my javascript project.\n\nA: Configure [jsconfig.json](https://code.visualstudio.com/docs/languages/jsconfig) to make\ntsserver understand your code. Some features may still not work well, it's\nrecommended to use typescript.\n\nQ: Not work on WSL.\n\nA: Copy you project files from mounted dirs to linux home otherwise tsserver\nmay not work properly.\n\n## Sponsoring\n\nIf you like coc-tsserver, consider supporting me on Patreon or PayPal:\n\n<a href=\"https://www.patreon.com/chemzqm\"><img src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" alt=\"Patreon donate button\" /> </a>\n<a href=\"https://www.paypal.com/paypalme/chezqm\"><img src=\"https://werwolv.net/assets/paypal_banner.png\" alt=\"PayPal donate button\" /> </a>\n\n## License\n\nMIT\n","readmeFilename":"Readme.md"}