| Summary: | TypeScript ctrl+click navigation broken since typescript-language-server 4.1 | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Karmo Rosental <karmo.rosental> |
| Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | lukasfriedrich |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.3 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/eea11763fef25b7ce2d998c88e084226357557e4 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Karmo Rosental
2023-11-13 14:09:31 UTC
Looks like entire TypeScript support is broken not only navigation (type tooltips, autocomplete etc.). paste this in the user LSP settings to fix it manually Update comming soon backlink to the fix: https://invent.kde.org/utilities/kate/-/merge_requests/1349 ``` { "servers": { "javascript": { "command": ["typescript-language-server", "--stdio"], "rootIndicationFileNames": ["package.json", "package-lock.json"], "url": "https://github.com/theia-ide/typescript-language-server", "highlightingModeRegex": "^JavaScript.*$", "documentLanguageId": true } } } ``` Git commit eea11763fef25b7ce2d998c88e084226357557e4 by Christoph Cullmann, on behalf of Lukas Friedrich. Committed on 13/11/2023 at 17:56. Pushed by cullmann into branch 'master'. Newest version of the Typescript/Javascript LSP needs the LanguageID set GH Issue https://github.com/typescript-language-server/typescript-language-server/issues/794 setting it to true seems to fix it ``` That's likely because your client (Emacs, etc) sends incorrect language ID for those files. These are the language IDs that should be set for each file type: js - javascript ts - typescript jsx - javascriptreact tsx - typescriptreact Previous version of the server was less strict but that likely caused hard to spot issues at a later point. If you look at the textDocument/didOpen request then you'll see what languageId is being passed. ``` M +1 -1 addons/lspclient/settings.json https://invent.kde.org/utilities/kate/-/commit/eea11763fef25b7ce2d998c88e084226357557e4 Git commit eea11763fef25b7ce2d998c88e084226357557e4 by Christoph Cullmann, on behalf of Lukas Friedrich. Committed on 13/11/2023 at 17:56. Pushed by cullmann into branch 'master'. Newest version of the Typescript/Javascript LSP needs the LanguageID set GH Issue https://github.com/typescript-language-server/typescript-language-server/issues/794 setting it to true seems to fix it ``` That's likely because your client (Emacs, etc) sends incorrect language ID for those files. These are the language IDs that should be set for each file type: js - javascript ts - typescript jsx - javascriptreact tsx - typescriptreact Previous version of the server was less strict but that likely caused hard to spot issues at a later point. If you look at the textDocument/didOpen request then you'll see what languageId is being passed. ``` M +1 -1 addons/lspclient/settings.json https://invent.kde.org/utilities/kate/-/commit/eea11763fef25b7ce2d998c88e084226357557e4 |