rust-analyzer initializes again when jumping to code outside of current workspace #421
Description
Hello,
Whenever I am jumping to definition outside of current workspace, rust-analyzer seems to start a new instance on the jumped file's location, while leaving the current instance hanging until it has started.
This is an issue because rust-analyzer is extremely slow to start on large code bases, and I sometimes lose the LSP for ~1 minute.
It happens when I jump to definition of something in std
(Default
, or Vec
for example), or whenever I jump to a dependency (inside or outside my monorepo workspace)
In VSCode, I do not have the issue. I am not sure how to troubleshoot the problem, maybe I am missing some config file ?
Is it possible to have RA run as single file mode for any code that is outside the scope of the initial root directory ?
Or to blacklist some paths (std lib and cargo deps mainly) and prevent them from starting a full steam rust-analyzer ?