Repository navigation
fix: consider wco on the left side - #310602
Closed
tarik02 (tarik02) wants to merge 1 commit into
Closed
tarik02 (tarik02) wants to merge 1 commit into
tarik02 (tarik02) wants to merge 1 commit into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Benjamin Christopher Simmonds (@benibenj)Matched files:
|
Author
|
Benjamin Christopher Simmonds (@benibenj) electron has merged PR other that makes windows respect system settings and now it may be WCO on left side. Next electron release is going to have impact on vscode breaking the layout. |
tarik02 (tarik02)
force-pushed
the
fix/consider-desktop-wco-on-left-side
branch
from
August 22, 2026 17:05
331f1fd to
59d32bb
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Updates title-bar spacing to support window controls on either side.
Changes:
- Adds opposite-side window-control spacers on desktop.
- Applies WCO environment sizing beyond web contexts.
- Removes fixed desktop control widths.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
titlebarPart.ts |
Creates control-overlay containers on both sides. |
titlebarpart.css |
Sizes control spacers using WCO environment variables. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Tarik02 <[email protected]>
tarik02 (tarik02)
force-pushed
the
fix/consider-desktop-wco-on-left-side
branch
from
August 22, 2026 17:16
59d32bb to
5f1dccd
Compare
Contributor
|
Awesome, finally VS Code follows my system appearance! |
Collaborator
|
Closing in favor of #332935 |
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.
Fixes #332131
Updates the custom title bar layout to support native window controls on either side.
When Window Controls Overlay is enabled, VS Code now creates left and right spacers and sizes them using the
titlebar-area-*environment variables. This prevents title bar content from overlapping left-side controls introduced byElectron 43.
The existing zoom-aware 138px width remains unchanged when native WCO is disabled. The same behavior is applied to the Agents window title bar.
Before and after
Testing
Requires Electron 43+ and a Linux desktop that supports configuring the window controls position.
"window.titleBarStyle": "custom"and"window.controlsStyle": "native".env(titlebar-area-x)."window.controlsStyle": "custom"and restart VS Code.