Skip to content

fix title bar actions alignment - #310869

Merged
Sandeep Somavarapu (sandy081) merged 3 commits into
mainfrom
sandy081/bad-antlion
Apr 17, 2026
Merged

fix title bar actions alignment#310869
Sandeep Somavarapu (sandy081) merged 3 commits into
mainfrom
sandy081/bad-antlion

Conversation

@sandy081

Copy link
Copy Markdown
Member

No description provided.

Co-authored-by: Copilot <copilot@github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: b3b68311 Current: 15317647

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after

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.

Pull request overview

This PR adjusts how “left-side” title actions are laid out to fix alignment issues, primarily by removing the special “global left actions” toolbar from pane composite parts and by reworking the Agent Sessions window grid/titlebar sizing logic.

Changes:

  • Removes globalLeftActionsMenuId support from AbstractPaneCompositePart and updates all callers accordingly.
  • Updates the Agent Sessions workbench grid descriptor to place the titlebar as a top row (vertical root) and clamps derived sizes to non-negative values.
  • Reworks Agent Sessions titlebar sizing/alignment logic (and related CSS), including removing the custom left toggle action view item registration.
Show a summary per file
File Description
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts Drops the removed globalLeftActionsMenuId argument from the sidebar part base constructor call.
src/vs/workbench/browser/parts/panel/panelPart.ts Drops the removed globalLeftActionsMenuId argument from the panel part base constructor call.
src/vs/workbench/browser/parts/paneCompositePart.ts Removes globalLeftActionsMenuId from AbstractPaneCompositePart and deletes the left global toolbar creation block.
src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.ts Drops the removed globalLeftActionsMenuId argument from the auxiliary bar part base constructor call.
src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.ts Removes the custom sidebar-toggle action view item (and its registration) from the sessions titlebar contribution.
src/vs/sessions/browser/workbench.ts Changes grid descriptor to a vertical root with a top titlebar row and clamps computed heights to >= 0.
src/vs/sessions/browser/parts/titlebarPart.ts Aligns titlebar-left width with sidebar width using a ResizeObserver and content-width measurements.
src/vs/sessions/browser/parts/sidebarPart.ts Removes sidebar title and stops passing the left-titlebar menu as a “global left actions” menu.
src/vs/sessions/browser/parts/panelPart.ts Drops the removed globalLeftActionsMenuId argument from the panel part base constructor call.
src/vs/sessions/browser/parts/media/titlebarpart.css Adjusts titlebar flex alignment and removes CSS that hid the entire titlebar-left when the sidebar is visible.
src/vs/sessions/browser/parts/chatBarPart.ts Drops the removed globalLeftActionsMenuId argument from the chat bar part base constructor call.
src/vs/sessions/browser/parts/auxiliaryBarPart.ts Stops passing the removed “left title” menu id to the auxiliary bar part.
src/vs/sessions/browser/menus.ts Removes the now-unused AuxiliaryBarTitleLeft menu id.

Copilot's findings

  • Files reviewed: 13/13 changed files
  • Comments generated: 3

Comment thread src/vs/workbench/browser/parts/paneCompositePart.ts
Comment thread src/vs/sessions/browser/parts/titlebarPart.ts Outdated
Comment thread src/vs/sessions/browser/workbench.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
auto-merge was automatically disabled April 17, 2026 06:30

Pull request was closed

@sandy081
Sandeep Somavarapu (sandy081) merged commit c22d565 into main Apr 17, 2026
75 of 79 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the sandy081/bad-antlion branch April 17, 2026 07:07
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 17, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 1, 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.

4 participants