Skip to content

tasks: avoid flushing markers for inactive background matchers - #346949

Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
agents/address-copilot-feedback-draft-pr-107383d3
Nov 9, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
agents/address-copilot-feedback-draft-pr-107383d3

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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]>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added bug Issue identified by VS Code Team member as probable bug tasks Task system issues labels Nov 9, 2026
Copilot AI balanced review requested due to automatic review settings November 9, 2026 11:19
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch and removed bug Issue identified by VS Code Team member as probable bug labels Nov 9, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor

This PR will be automatically cherry-picked to release/1.146 when merged.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@dmitrivMS
Dmitriy Vasyura (dmitrivMS) marked this pull request as ready for review November 9, 2026 11:38
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 22e0795 into main Nov 9, 2026
53 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the agents/address-copilot-feedback-draft-pr-107383d3 branch November 9, 2026 11:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 9, 2026
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches tasks Task system issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Background task completion error event omits the final resource

3 participants