| Summary: | Incorrect LSP Server Selection in Kate for added languages | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Hugues Morisset <morisset.hugues> |
| Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph, morisset.hugues |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/35bae3d56d19118e1f710531267c03c7db177a4c | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | settings | ||
|
Description
Hugues Morisset
2023-09-26 07:44:39 UTC
We match atm first the hl mode, then the file mode name, I would propose we just swap that order, then it would work for this use case, too. A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1310 Git commit 35bae3d56d19118e1f710531267c03c7db177a4c by Christoph Cullmann. Committed on 26/09/2023 at 22:18. Pushed by cullmann into branch 'master'. improve language id computation prefer the mode over the highlighting to allow to use known a highlighting with existing LSP for a mode for a new language and own LSP M +9 -2 addons/lspclient/lspclientservermanager.cpp https://invent.kde.org/utilities/kate/-/commit/35bae3d56d19118e1f710531267c03c7db177a4c |