diff --git a/docs/configuration.md b/docs/configuration.md index 438b3216..69085025 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -102,6 +102,8 @@ Specifies preferences for the internal `tsserver` process. Those options depend **displayPartsForJSDoc** [boolean] **Default**: `true` +**excludeLibrarySymbolsInNavTo** [boolean] **Default**: `true` + **generateReturnInDocTemplate** [boolean] **Default**: `true` **includeInlayParameterNameHints** [string] Supported values: `'none'`, `'literals'`, `'all'`. **Default**: `'none'` diff --git a/package.json b/package.json index 96b4fe46..637ca363 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "tslib": "^2.6.2", - "typescript": "^5.2.2", + "typescript": "^5.3.2", "vscode-jsonrpc": "^8.2.0", "vscode-languageserver": "^9.0.1", "vscode-languageserver-protocol": "^3.17.5", diff --git a/src/features/fileConfigurationManager.ts b/src/features/fileConfigurationManager.ts index c63c1ac4..77a7367e 100644 --- a/src/features/fileConfigurationManager.ts +++ b/src/features/fileConfigurationManager.ts @@ -30,6 +30,7 @@ const DEFAULT_TSSERVER_PREFERENCES: Required disableLineTextInReferences: true, disableSuggestions: false, displayPartsForJSDoc: true, + excludeLibrarySymbolsInNavTo: true, generateReturnInDocTemplate: true, importModuleSpecifierEnding: 'auto', importModuleSpecifierPreference: 'shortest', diff --git a/src/lsp-server.spec.ts b/src/lsp-server.spec.ts index 0bbf65a4..378432c7 100644 --- a/src/lsp-server.spec.ts +++ b/src/lsp-server.spec.ts @@ -2274,7 +2274,10 @@ describe('inlayHints', () => { expect(inlayHints).toBeDefined(); expect(inlayHints).toHaveLength(1); expect(inlayHints![0]).toMatchObject({ - label: ': number', + label: [ + { value: ': ' }, + { value: 'number' }, + ], position: { line: 1, character: 29 }, kind: lsp.InlayHintKind.Type, paddingLeft: true, diff --git a/yarn.lock b/yarn.lock index 36e3fb00..5c073465 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4348,10 +4348,10 @@ type-fest@^2.12.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b" integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA== -typescript@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" - integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +typescript@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43" + integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ== undici-types@~5.26.4: version "5.26.5" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy