Skip to content

Keep task problem markers scoped to each terminal - #346994

Merged
Megan Rogge (meganrogge) merged 1 commit into
microsoft:mainfrom
sameerihs:isolate-task-problem-markers
Nov 11, 2026
Merged

Megan Rogge (meganrogge) merged 1 commit into
microsoft:mainfrom
sameerihs:isolate-task-problem-markers

Conversation

@sameerihs

Copy link
Copy Markdown
Contributor

Fixes #346990

Concurrent background tasks currently share one problem-start marker. One terminal can therefore decorate from another terminal's marker or dispose it when its own watch cycle finishes without errors. Keep the marker in each terminal registration's existing disposable scope.

Two regressions exercise overlapping watch cycles through the real problem collector and in-memory xterm markers. Both fail before the fix and pass afterward. All 20 checks in the four nearby task suites, targeted ESLint and the core no-emit typecheck pass. Exact stable 1.145.2 task-status/collector sources reproduce the failures under the same test infrastructure.

Copilot AI balanced review requested due to automatic review settings November 9, 2026 15:07

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 for the change isolating background-task problem markers by terminal registration.

No open issues 🎉

What changed in this PR

Fixes #346990 by keeping background-task problem markers local to each terminal registration, preventing overlapping tasks from using or disposing another terminal’s marker.

Changes:

  • Replaces the shared marker field with per-registration state while preserving existing disposal handling.
  • Adds two regression tests using the real problem collector and in-memory xterm instances to cover overlapping error and clean watch cycles.

No actionable findings remain.

File Description
src/​vs/​workbench/​contrib/​tasks/​test/​browser/​taskTerminalStatus.test.ts Adds regression coverage for marker isolation across concurrent background tasks.
src/​vs/​workbench/​contrib/​tasks/​browser/​taskTerminalStatus.ts Scopes problem markers to individual terminal registrations.

Review effort: Balanced

@meganrogge

Copy link
Copy Markdown
Collaborator

Thanks!

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 for the change that isolates task problem markers by terminal.

No open issues 🎉

Review effort: Max

@meganrogge
Megan Rogge (meganrogge) merged commit 5d79100 into microsoft:main Nov 11, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants