Repository navigation
editor: restore connected tab color customizations - #337986
Merged
Cherry Wang (chryw) merged 2 commits intoSep 25, 2026
Merged
Cherry Wang (chryw) merged 2 commits into
Cherry Wang (chryw) merged 2 commits into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
Contributor
There was a problem hiding this comment.
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
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.
Contributor
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]>
Vritant Bhardwaj (vritant24)
approved these changes
Sep 25, 2026
Cherry Wang (chryw)
deleted the
dev/cherwan/agents/tab-colorization-feedback-investigation
branch
September 25, 2026 17:38
Closed
This was referenced Oct 2, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

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.
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:
Light Modern with wrapped rows, active pink / inactive green:
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.
Testing
workbench.experimental.modernUIEditorTabStyleat its defaultconnectedvalue.tab.activeBackground,tab.inactiveBackground, andtab.hoverBackgroundcolors. Open one editor, many editors, and enough editors to wrap.workbench.experimental.modernUIEditorTabStyletopilland verify the same fill and label color precedence while pill geometry remains unchanged.Validation
npm run compile