Agents - add editor layout toolbar to the editor title#311007
Merged
Conversation
Contributor
Screenshot ChangesBase: Changed (37)Added (14) |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR explores adding dedicated “layout” controls to the editor title by introducing a separate toolbar/menu for layout-related actions and adjusting the wrapped-tabs layout to account for this extra action area.
Changes:
- Added a new
MenuId.EditorTitleLayoutand wired a second “layout actions” toolbar intoEditorTabsControl. - Updated multi-editor tab wrapping layout to reserve space for the additional toolbar area.
- Moved Sessions window maximize/restore actions into the new layout menu and added a new “Close Editor” action entry.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts | Accounts for an additional actions container width when computing wrapped-tab margins/overlaps. |
| src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css | Adds styling/positioning for a separator and a trailing actions area, including wrapping behavior. |
| src/vs/workbench/browser/parts/editor/editorTabsControl.ts | Introduces a second toolbar for layout actions and the associated lifecycle/update logic. |
| src/vs/sessions/contrib/changes/browser/changesViewActions.ts | Registers Sessions-specific actions under EditorTitleLayout and adds a new “Close Editor” action entry. |
| src/vs/platform/actions/common/actions.ts | Adds MenuId.EditorTitleLayout. |
| build/lib/stylelint/vscode-known-variables.json | Adds the new CSS variable name to the allowlist. |
Copilot's findings
- Files reviewed: 6/6 changed files
- Comments generated: 5
sandy081
approved these changes
Apr 20, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a new editor layout toolbar for the editor part in the Agents app.
