Skip to content

editor: restore connected tab color customizations - #337986

Merged
Cherry Wang (chryw) merged 2 commits into
mainfrom
dev/cherwan/agents/tab-colorization-feedback-investigation
Sep 25, 2026
Merged

Cherry Wang (chryw) merged 2 commits into
mainfrom
dev/cherwan/agents/tab-colorization-feedback-investigation

Conversation

@chryw

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

Copy link
Copy Markdown
Contributor

Summary

Connected editor tabs stopped honoring existing tab background customizations after the connected style became the Modern UI default. This restores those customizations without changing the default connected presentation or removing the optional pill style.

  • Apply explicit legacy and Modern UI tab fill and label colors to connected tabs, with editor-specific Modern UI colors taking precedence.
  • Keep connected geometry and frame ownership intact across active, inactive, hover, unfocused, wrapped, clipped, and High Contrast states.
  • Keep clipped caps and shoulders synchronized with active hover colors.
  • Remove the extra strip-colored stripe beside the first tab and wrapped row starts while preserving the editor frame.

Fixes #337511.

Related design and theming work: #330818, #335605, and #337126.

Visuals

Existing colors now apply to connected tabs

Dark Modern, active cyan / inactive navy / hover orange:

Connected tabs honoring legacy colors in Dark Modern

Light Modern with wrapped rows, active pink / inactive green:

Connected tabs honoring legacy colors across wrapped rows in Light Modern

First-tab left edge

The transparent one-pixel tab border exposed the strip color beside the editor frame. Removing the tab-owned width leaves one outer stroke and starts the fill immediately inside it.

Before After
Before: transparent left border exposes a second strip-colored stripe After: the active fill begins immediately inside the editor frame

Testing

  1. Enable Modern UI and leave workbench.experimental.modernUIEditorTabStyle at its default connected value.
  2. Configure legacy tab.activeBackground, tab.inactiveBackground, and tab.hoverBackground colors. Open one editor, many editors, and enough editors to wrap.
  3. Verify active, inactive, hover, unfocused-group, and wrapped-row colors while the connected shape remains intact.
  4. Manually scroll an active tab through both viewport edges and verify the clipped cap, mask, and shoulder follow hover and reset colors.
  5. Switch to Light Modern and High Contrast themes. Verify one shared editor frame, no doubled strokes or seams, uniform row spacing, and no background leakage outside rounded corners.
  6. Set workbench.experimental.modernUIEditorTabStyle to pill and verify the same fill and label color precedence while pill geometry remains unchanged.
  7. Leave tab colors uncustomized and verify connected tabs retain the existing document-well defaults.

Validation

  • npm run compile
  • Targeted unit tests for color precedence, clipped hover, row-start borders, and Agents chat clipping
  • ESLint and Stylelint
  • Native Electron Code OSS validation across Dark Modern, Light Modern, and High Contrast

Copilot AI balanced review requested due to automatic review settings September 25, 2026 15:44
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/browser/parts/chatCompositeBar.ts
  • src/vs/workbench/browser/parts/editor/connectedTabClipping.ts
  • src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts

@chryw Cherry Wang (chryw) changed the title Investigate tab colorization feedback and update UI behavior editor: restore connected tab color customizations Sep 25, 2026

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

🟡 Changes recommended

Right-edge hover leaks into the backing mask, and unfocused wrapped rows ignore their dedicated hover customization.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Restores explicit tab color customizations for connected Modern UI tabs while preserving their geometry, clipping, and shared frame.

Changes:

  • Adds legacy and Modern UI color precedence for connected tabs.
  • Synchronizes clipped tab hover visuals.
  • Adds focused regression coverage and documentation.
File Description
build/​lib/​stylelint/​vscode-known-variables.json Registers new CSS variables.
src/​vs/​sessions/​browser/​parts/​chatCompositeBar.ts Propagates active-tab hover to clipped chat tabs.
src/​vs/​sessions/​test/​browser/​chatCompositeBar.test.ts Tests clipped chat-tab hover state.
src/​vs/​workbench/​browser/​parts/​editor/​connectedTabClipping.ts Clears overflow hover state with clipping state.
src/​vs/​workbench/​browser/​parts/​editor/​multiEditorTabsControl.ts Tracks active-tab hover on overflow decorations.
src/​vs/​workbench/​contrib/​modernUI/​README.md Documents color precedence.
src/​vs/​workbench/​contrib/​modernUI/​browser/​media/​connectedEditorTabs.css Applies custom fills and hover colors.
src/​vs/​workbench/​contrib/​modernUI/​test/​browser/​modernUI.contribution.test.ts Tests connected-tab colors and borders.
src/​vs/​workbench/​services/​themes/​browser/​modernTabColorCustomizations.ts Resolves explicit connected-tab colors.
src/​vs/​workbench/​test/​browser/​parts/​editor/​multiEditorTabsControl.test.ts Tests clipped cap and shoulder hover colors.

💡 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: 7a785488 Current: 093975ad

Changed (127)

chat/scrollAnchoring/chatScrollAnchoring/CompletedVisibleHeader/Light
Before After
before after
chat/scrollAnchoring/chatScrollAnchoring/CompletedOffscreenHeader/Dark
Before After
before after
chat/scrollAnchoring/chatScrollAnchoring/CompletedOffscreenHeader/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllPinned/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllPinned/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllUnpinned/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowAllUnpinned/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowMixed/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedTabsOnSeparateRowMixed/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsFilePathLast/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/BreadcrumbsFilePathLast/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingShrink/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingShrink/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingFixed/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TabSizingFixed/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/WrapTabs/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/WrapTabs/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/HighlightModifiedTabs/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/HighlightModifiedTabs/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatShort/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatShort/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatMedium/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatMedium/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatLong/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LabelFormatLong/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarLarge/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarLarge/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarVisible/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/TitleScrollbarVisible/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroupDirty/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/InactiveGroupDirty/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LongLabelsShrink/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/LongLabelsShrink/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseActive/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseActive/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseDirty/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseDirty/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseSticky/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/CannotCloseSticky/Light
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedSeparateRowCompact/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ModernUIOn/PinnedSeparateRowCompact/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTab/SolarizedLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTabCloseActionHovered/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/SingleTabCloseActionHovered/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/NarrowWindow/SolarizedLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/LightHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedPills/SolarizedLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedCloseActionHovered/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/UpperWrappedCloseActionHovered/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/DarkHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/LightHighContrast
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/WrappedRowStart/SolarizedLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActive/SolarizedLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/Dark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/Light
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/DarkModern
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/Light2026
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/DarkPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/LightPlus
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/VisualStudioDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/VisualStudioLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/Abyss
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/Monokai
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/QuietLight
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/SolarizedDark
Before After
before after
editor/editorTabBar/editorTabBar/ConnectedSurface/FirstTabActiveAdjacentHover/SolarizedLight
Before After
before after

Keep the right clipping mask on the strip color while active cap geometry follows hover, and preserve unfocused hover customizations on wrapped rows.

Co-authored-by: Copilot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

标签页颜色不能修改

6 participants