Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear diagnostics only after new ones were received #17248

Merged
merged 1 commit into from
May 22, 2024

Conversation

mladedav
Copy link
Contributor

Closes #15934

This adds a flag inside the global state which controls when old diagnostics are cleared. Now, old diagnostics should be cleared only after at least one new diagnostic is available.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 16, 2024
@Veykril
Copy link
Member

Veykril commented May 22, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented May 22, 2024

📌 Commit 4d93469 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 22, 2024

⌛ Testing commit 4d93469 with merge 2dc22c6...

@bors
Copy link
Collaborator

bors commented May 22, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 2dc22c6 to master...

@bors bors merged commit 2dc22c6 into rust-lang:master May 22, 2024
11 checks passed
@mladedav mladedav deleted the dm/delay-clear branch May 22, 2024 13:16
@tomjw64
Copy link

tomjw64 commented May 27, 2024

Hi @mladedav @Veykril! I suspect this change may be causing issues with clearing diagnostics on the latest released version of the VSCode extension. No hard evidence, but this is the only change mentioning the clearing of diagnostics in the latest release. I've made this issue as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep diagnostics at least until new ones are available
5 participants