https://bugs.kde.org/show_bug.cgi?id=492061

--- Comment #3 from Waqar Ahmed <waqar....@gmail.com> ---
You don't have to open multiple projects in an actual sense. I mean, you are
working on your project and you jump to a definition in a crate or std library.
This will start a new server because there is a new root. This is annoying in
multiple ways and leads to excessive resource usage quickly.

Another possible way to fix this might be to specify `root` and `userWorkspace`
in the lsp settings:

```
            "command": ["rust-analyzer"],
            "path": ["%{ENV:CARGO_HOME}/bin", "%{ENV:HOME}/.cargo/bin",
"%{ENV:USERPROFILE}/.cargo/bin"],
            "url": "https://rust-analyzer.github.io";,
            "highlightingModeRegex": "^Rust$",
            "root": "", // this
            "useWorkspace": true, // and this
```
IIRC, this tries to use the open project's root. Project here means kate's
project in the sidebar.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to