Repository navigation
tasks: avoid flushing markers for inactive background matchers - #346949
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit intoNov 9, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Conversation
Only publish the current resource when the end pattern belongs to an active background matcher. Unrelated end patterns can otherwise prematurely set the delivery count and suppress a later diagnostic update. Co-authored-by: Copilot <[email protected]>
Contributor
|
This PR will be automatically cherry-picked to |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, although tests were not run during this review.
No open issues 🎉
What changed in this PR
This follow-up to #339551 prevents inactive background task matchers from prematurely flushing diagnostics, addressing the Windows delivery-guard issue associated with #339547.
Changes:
- Flush current-resource markers only when the matching background matcher is active.
- Add a regression test confirming that an inactive matcher’s end event leaves diagnostics buffered until the active matcher ends.
No actionable findings remain. Tests were not run during this review.
| File | Description |
|---|---|
src/vs/workbench/contrib/tasks/test/common/problemCollectors.test.ts |
Tests deferred marker delivery after an inactive matcher ends. |
src/vs/workbench/contrib/tasks/common/problemCollectors.ts |
Guards marker flushing with the matching background matcher’s active state. |
Review effort: Balanced
Dmitriy Vasyura (dmitrivMS)
marked this pull request as ready for review
November 9, 2026 11:38
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
November 9, 2026 11:38
Federico Brancasi (federicobrancasi)
approved these changes
Nov 9, 2026
Dmitriy Vasyura (dmitrivMS)
deleted the
agents/address-copilot-feedback-draft-pr-107383d3
branch
November 9, 2026 11:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #339547
Follow-up to #339551. Flush markers only when the matching background matcher is active. An inactive matcher can otherwise flush an in-progress resource early, causing the delivery guard to suppress a later diagnostic update on Windows.