rust-lang / rust-lang/rust-analyzer
Size hints don't appear if you have multiple rust workspaces open (VSCode or zed)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer version: 0.4.2465 (any really)
rustc version: (eg. output of rustc -V) 1.87 (any version)
editor or extension: tried both VSCode and Zed
relevant settings: I have more than one workspace folder open in VSCode (or zed).
If I have more than one rust workspace open in vscode or zed, the size hint you get when you hover a struct doesn't appear. Let's say I have both WorkspaceA and WorkspaceB opened in VSCode (or zed). Hovering an enum definition from workspace A doesn't show the size info.
If I open only one workspace folder (WorkspaceA), size hints for that exact enum appear as expected.
Issue is visible with enum or data structure.
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
Reproduce the issue by opening two Rust workspace folders in VSCode or Zed, then hover an enum or data structure from each workspace and compare the size hints with a single workspace open. Trace the hover handling and workspace selection involved in producing size information; done means size hints appear for definitions in both workspaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100