Support maximizing the panel when justified#288038
Closed
Conversation
Remove restrictions that prevented panel maximization with non-center alignment. When maximizing a justified panel, the sidebar and auxiliary bar are now hidden and restored appropriately. Changes: - Add PANEL_LAST_NON_MAXIMIZED_VISIBILITY state key to track sidebar and auxiliary bar visibility when maximizing justified panels - Update isPanelMaximized() to work regardless of panel alignment - Update toggleMaximizedPanel() to hide/show sidebar and auxiliary bar when maximizing/restoring non-center aligned panels - Remove auto-unmaximize behavior from setPanelAlignment() - Remove action preconditions that disabled maximize for justified panels - Clean up unused imports Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
- Add explicit type parameter to PANEL_LAST_NON_MAXIMIZED_VISIBILITY - Remove unnecessary optional chaining since state has default value Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for maximizing justified panels in terminal
Support maximizing the panel when justified
Jan 15, 2026
Member
|
Running out of steam, still a lot of issues around when panel maximised in non default config and opening 1st/2nd sidebar. |
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.
Panel maximization was restricted to center-aligned panels only. This enables maximization for justified/left/right aligned panels by hiding the sidebar and auxiliary bar when maximizing.
Changes
layout.ts:
PANEL_LAST_NON_MAXIMIZED_VISIBILITYstate key to track sidebar/auxiliary bar visibilitytoggleMaximizedPanel()to hide/restore sidebar and auxiliary bar for non-center aligned panelsisPanelMaximized()andpanelOpensMaximized()setPanelAlignment()panelActions.ts: Remove precondition and menu
whenclause that disabled maximize for non-center panelslayoutActions.ts: Simplify precondition for "Toggle Editor Area Visibility"
Screenshots
Justified panel before maximize:

Justified panel maximized:

After restore (sidebar restored):

Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.