| Summary: | Cannot override / add to lsp settings in .kateproject | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Robert Roland <rob> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | gl.ivanovsky |
| Priority: | NOR | ||
| Version First Reported In: | 21.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Marking as resolved - it's more a matter of me not knowing the proper configuration.
In .kateproject:
```
{
"name": "my project",
"lspclient": {
"servers": {
"ada": {
"settings": {
"ada": {
"projectFile": "plaid.gpr",
"enableIndexing": true
}
}
}
}
}
}
```
It was missing the "servers" key
And in my user LSP settings, in case someone else wants to use the Ada language server:
```
{
"servers": {
"ada": {
"command": ["ada_language_server"],
"rootIndicationFilePatterns": ["*.gpr"],
"url": "https://github.com/AdaCore/ada_language_server",
"highlightingModeRegex": "^Ada$"
}
}
}
```
note the addition of rootIndicationFilePatterns
|
SUMMARY I've added the Ada Language Server to my User Server Settings: ``` { "servers": { "ada": { "command": ["ada_language_server"], "root": "", "url": "https://github.com/AdaCore/ada_language_server", "highlightingModeRegex": "^Ada$" } } } ``` But when I attempt to set the projectFile setting in the .kateproject, nothing seems to happen: ``` { "name": "my project", "lspclient": { "ada": { "settings": { "ada": { "projectFile": "plaidcl.gpr", "enableIndexing": true } } } } } ``` If I place that `settings` object inside the User Server Settings, it uses projectFile and sends it via a `workspace/didChangeConfiguration` message. STEPS TO REPRODUCE See above configuration snippets. OBSERVED RESULT `workspace/didChangeConfiguration` message does not fire upon opening a source file within the project. EXPECTED RESULT `workspace/didChangeConfiguration` should fire, sending the settings from the .kateproject file. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 36 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3 Kernel Version: 5.17.8-300.fc36.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz Memory: 31.0 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics ADDITIONAL INFORMATION