rust-lang / rust-lang/rust-analyzer

VSCode QOL: wait to clear problems tab until diagnostics finish

Open
#12,731 0 comments 0 reactions 0 assignees View on GitHub

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:
rust-analyzer version: 0.0.0 (75b22326d 2022-07-03)

rustc version:
rustc 1.60.0 (7737e0b5c 2022-04-04)

Great tool! I'm using the VSCode Problems tab.

Most of the time, I'm immediately ready to move on to the next problem after applying a fix.
Unfortunately, stale problems are cleared before the next cargo check completes.
This leaves a few seconds where I'm waiting for problems to appear, every time I fix a problem.
I'd prefer to have access to the stale problems until the updated batch of problems is ready.

Is there a way to tell rust-analyzer to wait to clear old problems until the next batch of problems is ready?

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior in the VSCode Problems tab by fixing a problem and observing when stale diagnostics disappear relative to the next cargo check. Trace the diagnostics update path and make the old batch remain visible until the updated batch is ready; verify that the Problems tab no longer has a gap between batches.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.