Skip to content

Commit

Permalink
Update to typescript-language-server v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored and predragnikolic committed Sep 14, 2022
1 parent 16686e6 commit 7bf5ba2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions LSP-typescript.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"allowIncompleteCompletions": true,
"allowRenameOfImportPath": true,
"allowTextChangesInNewFiles": true,
"autoImportFileExcludePatterns": [],
"displayPartsForJSDoc": true,
"generateReturnInDocTemplate": true,
"includeAutomaticOptionalChainCompletions": true,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down
18 changes: 17 additions & 1 deletion sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.`."
Expand Down Expand Up @@ -153,6 +158,7 @@
},
"provideRefactorNotApplicableReason": {
"type": "boolean",
"default": true,
},
"allowRenameOfImportPath": {
"type": "boolean",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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."
},
}
}
}
Expand Down

0 comments on commit 7bf5ba2

Please sign in to comment.