You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Background task completion error event omits the final resource #339547
Does this issue occur when all extensions are disabled?: Reproduced in core unit tests without extension activation; an installed-app reproduction was not run.
VS Code Version: 1.141.0 development, source commit 0817aaa
OS Version: macOS arm64, Node 24.18.0; source-level reproduction
WatchingProblemCollector emits onDidFindErrors before flushing markers for its current resource when a background end pattern matches. With one file, the completion event is empty even though the MarkerService subsequently contains its diagnostics. With multiple files, the completion event omits the last file. Repeated cycles can expose markers from the previous cycle in that final-resource slot.
Expected behavior: the completed-cycle error snapshot includes diagnostics for the final resource before consumers are notified.
Reproduced on main commit 0817aaa using WatchingProblemCollector and the real MarkerService, an active-on-start matcher with begin/end patterns, and one-file and two-file cycles. Tests await the public BackgroundProcessingEnds event and inspect the onDidFindErrors payload. They also cover repeated and empty cycles.
The narrow correction is to flush the current resource before reading MarkerService for the completion error event. This report concerns completion-event contents; it does not establish that historical Problems-panel issue #179361 is resolved.
Steps to reproduce in the repository test runner:
Use the focused regression tests with problemCollectors.ts from the baseline commit.
Process begin, two matching diagnostic lines for a.ts, and end through the watcher.
Await BackgroundProcessingEnds and inspect the captured onDidFindErrors snapshot: expected both errors, observed an empty snapshot.
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.140.0. Please try upgrading to the latest version and checking whether this issue remains.
Activity
vs-code-engineering commentedon Oct 4, 2026
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.140.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!