Repository navigation
Flush final task markers before completion notification - #339551
Merged
Megan Rogge (meganrogge) merged 2 commits intoNov 5, 2026
Merged
Megan Rogge (meganrogge) merged 2 commits into
Megan Rogge (meganrogge) merged 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused fix preserves event ordering and is covered by representative regression tests.
Review effort: Balanced
Findings: None
What changed in this PR
Fixes background task completion snapshots by publishing the final resource’s markers before notifying consumers.
Changes:
- Flushes pending markers before
onDidFindErrors. - Adds regression coverage for repeated one-file, two-file, and empty cycles.
| File | Description |
|---|---|
problemCollectors.ts |
Flushes final-resource markers before completion notification. |
problemCollectors.test.ts |
Verifies complete snapshots and marker cleanup. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Megan Rogge (meganrogge)
approved these changes
Nov 3, 2026
Megan Rogge (meganrogge)
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the fix!
Megan Rogge (meganrogge)
enabled auto-merge (squash)
November 3, 2026 19:30
roblourens
approved these changes
Nov 3, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 3, 2026
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
Background task completion reads MarkerService for onDidFindErrors before flushing the current resource. The resulting snapshot is empty for a one-file cycle and incomplete for a multi-file cycle. Flush the current resource before reading and notifying consumers.
Regression tests use the real MarkerService and collector, checking one-file and two-file snapshots over repeated cycles and cleanup after an empty cycle. The completion snapshot tests fail against the original implementation. Existing end-event ordering and marker-delivery guards remain in place.
Validation: local Chromium/WebKit/Electron tests, client type checking and transpilation, scoped hygiene and ESLint. Fork preflight checks the exact contribution commit on Linux, Windows, and macOS with browser/Electron task suites, same-runner baseline controls, source-quality checks, and JavaScript/TypeScript CodeQL. The five existing task build-selection tests remain pending; Linux also skips the existing Bug 19548 case. All preflight jobs passed for this exact contribution commit. Broad upstream CI and maintainer approval remain separate.