Skip to content

Support maximizing the panel when justified#288038

Closed
Copilot wants to merge 9 commits intomainfrom
copilot/support-maximizing-justified-panel-again
Closed

Support maximizing the panel when justified#288038
Copilot wants to merge 9 commits intomainfrom
copilot/support-maximizing-justified-panel-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 15, 2026

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:

    • Add PANEL_LAST_NON_MAXIMIZED_VISIBILITY state key to track sidebar/auxiliary bar visibility
    • Update toggleMaximizedPanel() to hide/restore sidebar and auxiliary bar for non-center aligned panels
    • Remove alignment restrictions from isPanelMaximized() and panelOpensMaximized()
    • Remove auto-unmaximize when switching to justified alignment in setPanelAlignment()
  • panelActions.ts: Remove precondition and menu when clause that disabled maximize for non-center panels

  • layoutActions.ts: Simplify precondition for "Toggle Editor Area Visibility"

Screenshots

Justified panel before maximize:
Before

Justified panel maximized:
Maximized

After restore (sidebar restored):
Restored

Original prompt

This section details on the original issue you should resolve

<issue_title>Support maximizing the panel when justified</issue_title>
<issue_description>

Hi,

Currently the terminal panel cannot be maximized when justified, only when centered. It would be great to have the same option for justified panels.

There are 3 issues about this, which have all been closed, because "not enough people upvoted it" the first time. Because it keeps reopening, I'd say let's reconsider.
#141094
#147781
#147094

Thanks!</issue_description>

Comments on the Issue (you are @copilot in this section)


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

Copilot AI and others added 3 commits January 15, 2026 11:53
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
Copilot AI requested a review from bpasero January 15, 2026 12:01
@bpasero
Copy link
Copy Markdown
Member

bpasero commented Jan 16, 2026

Running out of steam, still a lot of issues around when panel maximised in non default config and opening 1st/2nd sidebar.

@bpasero bpasero closed this Jan 16, 2026
@bpasero bpasero deleted the copilot/support-maximizing-justified-panel-again branch January 23, 2026 11:42
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 2, 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.

Support maximizing the panel when justified

2 participants