Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

rust-analyzer initializes again when jumping to code outside of current workspace #421

Description

@GuillaumeLagrange

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions