Skip to content

editor: cover tab style compatibility - #338025

Merged
Cherry Wang (chryw) merged 3 commits into
mainfrom
dev/cherwan/agents/fix-legacy-tab-regression-validation
Sep 25, 2026
Merged

Cherry Wang (chryw) merged 3 commits into
mainfrom
dev/cherwan/agents/fix-legacy-tab-regression-validation

Conversation

@chryw

@chryw Cherry Wang (chryw) commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

The connected-tab rollout briefly changed shared Dark Modern tab colors, which also affected the supported legacy tab presentation reported in #337480. The production appearance regression was already fixed by #337126 and that fix is on main.

This PR makes no further production styling or appearance changes. It only adds focused fixture and specification coverage so the legacy, connected, and pill setting combinations remain independent.

Changes

  • Add Dark Modern component fixtures for legacy, connected, and pill editor tabs.
  • Assert the rendered strip and inactive-tab surfaces:
    • Legacy retains the theme's #181818 background.
    • Connected alone uses the dedicated #2B2B2B strip.
    • Pill remains transparent and keeps its separate control-tier geometry.

Testing

  1. Run npm run compile.
  2. Run tests/editorTabBar.spec.ts through the component-fixture Playwright suite.
  3. Open a current Code OSS Dev build with Dark Modern and four editor tabs.
  4. Disable Modern UI and verify legacy tabs retain the darker strip.
  5. Enable Modern UI with connected and verify the active tab joins the editor while the strip uses the connected background.
  6. Switch the tab style to pill and verify the tabs remain separate and transparent.

Native Code OSS validation on macOS matched all three expected states.

Dark Modern with Modern UI disabled: legacy tabs retain the darker tab strip

Dark Modern with connected tabs: the active tab joins the editor and uses the dedicated strip background

Dark Modern with pill tabs: tabs remain separate and transparent

Add focused component fixtures and a rendered color assertion for legacy, connected, and pill tabs in Dark Modern. This prevents connected-only strip colors from leaking back into the other supported tab presentations.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 25, 2026 18:50

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.

Copilot review overview

🟢 Approval recommended

The focused fixtures and assertions correctly cover the reported Dark Modern regression without changing production behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Adds regression coverage ensuring Dark Modern’s legacy, connected, and pill tab presentations remain visually independent.

Changes:

  • Adds focused component fixtures for all three tab styles.
  • Verifies tab-strip and inactive-tab background colors with Playwright.
File Description
test/​componentFixtures/​playwright/​tests/​editorTabBar.spec.ts Asserts effective Dark Modern surface colors.
src/​vs/​workbench/​test/​browser/​componentFixtures/​editor/​editorTabBar.fixture.ts Adds themed fixtures for legacy, connected, and pill tabs.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 5be92d64 Current: 04327352

Changed (1)

chat/scrollAnchoring/chatScrollAnchoring/CompletedVisibleHeader/Dark
Before After
before after

2 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Added (6)

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Legacy/Dark

current

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Legacy/DarkModern

current

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Connected/Dark

current

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Connected/DarkModern

current

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Pill/Dark

current

editor/editorTabBar/editorTabBar/TabStyleCompatibility/Pill/DarkModern

current

The compatibility test opens three full themed fixtures sequentially. Give that test a larger timeout so slower shared runners can reach the assertions.

Co-authored-by: Copilot <[email protected]>
@chryw
Cherry Wang (chryw) merged commit 938e2a6 into main Sep 25, 2026
35 checks passed
@chryw
Cherry Wang (chryw) deleted the dev/cherwan/agents/fix-legacy-tab-regression-validation branch September 25, 2026 21:20
@vs-code-engineering vs-code-engineering Bot added this to the 1.140.0 milestone Sep 25, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants