From 7bf5ba2f41a6f48528d375c4f83461d8552181a8 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Tue, 13 Sep 2022 21:08:48 +0200 Subject: [PATCH] Update to typescript-language-server v1.2.0 --- LSP-typescript.sublime-settings | 3 +++ sublime-package.json | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/LSP-typescript.sublime-settings b/LSP-typescript.sublime-settings index cf7d181..b8e5375 100644 --- a/LSP-typescript.sublime-settings +++ b/LSP-typescript.sublime-settings @@ -9,6 +9,7 @@ "allowIncompleteCompletions": true, "allowRenameOfImportPath": true, "allowTextChangesInNewFiles": true, + "autoImportFileExcludePatterns": [], "displayPartsForJSDoc": true, "generateReturnInDocTemplate": true, "includeAutomaticOptionalChainCompletions": true, @@ -53,6 +54,7 @@ "javascript.inlayHints.includeInlayParameterNameHintsWhenArgumentMatchesName": false, "javascript.inlayHints.includeInlayPropertyDeclarationTypeHints": false, "javascript.inlayHints.includeInlayVariableTypeHints": false, + "javascript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": false, // Typescript formatting options. "typescript.format.insertSpaceAfterCommaDelimiter": true, "typescript.format.insertSpaceAfterConstructor": false, @@ -81,6 +83,7 @@ "typescript.inlayHints.includeInlayParameterNameHintsWhenArgumentMatchesName": false, "typescript.inlayHints.includeInlayPropertyDeclarationTypeHints": false, "typescript.inlayHints.includeInlayVariableTypeHints": false, + "typescript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": false, }, "command": ["${node_bin}", "${server_path}", "--stdio"], "selector": "source.js, source.jsx, source.ts, source.tsx", diff --git a/sublime-package.json b/sublime-package.json index 4ea60b4..29719b1 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -91,6 +91,11 @@ "single" ], }, + "autoImportFileExcludePatterns": { + "type": "array", + "default": [], + "markdownDescription": "Glob patterns of files to exclude from auto imports. Requires using TypeScript 4.8 or newer in the workspace.\n\nRelative paths are resolved relative to the workspace root." + }, "includeCompletionsForModuleExports": { "type": "boolean", "markdownDescription": "If enabled, TypeScript will search through all external modules' exports and add them to the completions list. This affects lone identifier completions but not completions on the right hand side of `obj.`." @@ -153,6 +158,7 @@ }, "provideRefactorNotApplicableReason": { "type": "boolean", + "default": true, }, "allowRenameOfImportPath": { "type": "boolean", @@ -331,6 +337,11 @@ "default": false, "markdownDescription": "Enable/disable inlay hints for implicit variable types: \n\n ```typescript\n const foo /* :number */ = Date.now();\n ``` \n Require TypeScript 4.4+." }, + "typescript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": { + "type": "boolean", + "default": false, + "markdownDescription": "When disabled then type hints on variables whose name is identical to the type name won't be shown. Requires using TypeScript 4.8+ in the workspace." + }, "javascript.format.insertSpaceAfterCommaDelimiter": { "type": "boolean", "default": true @@ -456,7 +467,12 @@ "type": "boolean", "default": false, "markdownDescription": "Enable/disable inlay hints for implicit variable types: \n\n ```typescript\n const foo /* :number */ = Date.now();\n ``` \n Require TypeScript 4.4+." - } + }, + "javascript.inlayHints.includeInlayVariableTypeHintsWhenTypeMatchesName": { + "type": "boolean", + "default": false, + "markdownDescription": "When disabled then type hints on variables whose name is identical to the type name won't be shown. Requires using TypeScript 4.8+ in the workspace." + }, } } }