Skip to content

Clear workspace pull state on document close to prevent stale diagnostics#1674

Merged
dbaeumer merged 2 commits intomicrosoft:mainfrom
dibarbet:workspace_stale_diags
Oct 10, 2025
Merged

Clear workspace pull state on document close to prevent stale diagnostics#1674
dbaeumer merged 2 commits intomicrosoft:mainfrom
dibarbet:workspace_stale_diags

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Oct 7, 2025

Took a stab at fixing #1673

Not completely sure if this is the right solution, but doesn't seem unreasonable. When forgetting a document, also forget the workspace pull state for it to ensure new workspace diagnostics are sent from the server. The document pull may have changed the set of diagnostics, meaning the client no longer has the same set of diagnostics that map to the previous workspace pull.

workspace_stale_fix

Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
@dbaeumer
Copy link
Member

dbaeumer commented Oct 9, 2025

@dibarbet actually the change does make sense.

@dbaeumer dbaeumer enabled auto-merge (squash) October 9, 2025 10:05
@dbaeumer
Copy link
Member

dbaeumer commented Oct 9, 2025

@dibarbet thanks for fixing this.

@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 9, 2025
@dibarbet
Copy link
Member Author

dibarbet commented Oct 9, 2025

Thanks! Think I need help triggering CI / merging

@alexr00
Copy link
Member

alexr00 commented Oct 10, 2025

I think CI doesn't run when it's from a fork.

@alexr00
Copy link
Member

alexr00 commented Oct 10, 2025

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dbaeumer dbaeumer merged commit 277eb6d into microsoft:main Oct 10, 2025
6 checks passed
fannheyward added a commit to neoclide/coc.nvim that referenced this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments