rust-lang / rust-lang/rust-analyzer
New rustc output in tooltips shows path when it shouldn't
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
First of all, the new feature works great!
I believe that the second line in the output describing the full path isn't supposed to be there, as it is entirely redundant: the tooltip is being shown inline at the right span, the user doesn't need the span context. I wonder if it is because of an overly restrictive regex that didn't account for the leading whitespace?
cc @Veykril
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 rustc diagnostic shown in the issue and inspect the tooltip formatting or matching logic, including the suspected leading-whitespace regex case. Done means the inline tooltip no longer includes the redundant full-path context while preserving the useful diagnostic output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100