layout - show toggled icons again for maximised panel/chat#295189
Merged
layout - show toggled icons again for maximised panel/chat#295189
Conversation
hediet
previously approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the panel and auxiliary bar maximize/restore actions by consolidating separate maximize and restore actions into single toggle actions with toggled states. The goal is to properly show toggled icons for maximized panels and chat (auxiliary bar).
Changes:
- Consolidated separate maximize and restore menu items into single toggle actions with toggled icon states
- Removed separate
restoreIconregistrations and their associated menu entries - Updated action configurations to use the
toggledproperty for state-dependent icon and tooltip display
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/vs/workbench/browser/parts/panel/panelActions.ts | Removed restoreIcon, removed panelMaximizationSupportedWhen const, consolidated maximize/restore menu items into toggle action with toggled state |
| src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.ts | Removed restoreIcon, removed icon/menu from separate maximize/restore actions, added toggled state to ToggleMaximizedAuxiliaryBar with icon and menu |
Comments suppressed due to low confidence (1)
src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.ts:277
- This tooltip uses a different localization key ('maximizeAuxiliaryBarTooltip2') than the MaximizeAuxiliaryBar action (line 226: 'maximizeAuxiliaryBarTooltip') with identical text ("Maximize Secondary Side Bar"). This creates unnecessary duplication in the localization strings. Consider reusing the existing 'maximizeAuxiliaryBarTooltip' key.
tooltip: localize('maximizeAuxiliaryBarTooltip2', "Maximize Secondary Side Bar"),
src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.ts
Outdated
Show resolved
Hide resolved
meganrogge
previously approved these changes
Feb 13, 2026
src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.ts
Outdated
Show resolved
Hide resolved
alexr00
approved these changes
Feb 13, 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.
No description provided.