rust-lang / rust-lang/rust-analyzer
Why load all folders in workspace
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
In following workspace, there are may folders. Each folder is a crate.
When I open this workspace, rust-analyzer will load all folders which heavily increae the timeout to get seamatic highlight and intellisence.
Why not just load the folder which user had open rust file in it?
For example, when I open the main.rs in folder enums, just load the metadata of this crate.
My workspace settings:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how rust-analyzer discovers and loads workspace crates, using the reported multi-folder workspace as the reproduction case. The issue’s proposed outcome is that opening a Rust file loads only its relevant crate metadata rather than every folder, but the payload names no source files or tests to begin with.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100