Skip to content

sessions: restore terminal after editor maximize#311961

Merged
hawkticehurst merged 3 commits intomainfrom
agents/maximize-editor-hide-terminal
Apr 23, 2026
Merged

sessions: restore terminal after editor maximize#311961
hawkticehurst merged 3 commits intomainfrom
agents/maximize-editor-hide-terminal

Conversation

@hawkticehurst
Copy link
Copy Markdown
Member

@hawkticehurst hawkticehurst commented Apr 22, 2026

Summary

  • hide the sessions panel only when Maximize Editor is invoked while the terminal view is visible
  • restore the terminal panel when Restore Editor is invoked after that maximize flow hid it
  • add regression coverage for the maximize/restore commands and document the sessions layout behavior
Screen.Recording.2026-04-22.at.2.02.40.PM.mov

Notes

  • direct hygiene checks passed for the changed TypeScript files
  • full repo compile/test validation was not completed in this worktree because the local environment initially lacked the expected bootstrap state and Node version

Copilot AI review requested due to automatic review settings April 22, 2026 18:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 the Sessions window editor maximize/restore flow so that maximizing the editor only hides the panel when the Terminal view is currently visible, and restoring the editor reopens the Terminal panel if (and only if) the maximize action hid it.

Changes:

  • Update Maximize Editor to hide the panel only when the visible panel is the Terminal view, tracking that state for restoration.
  • Update Restore Editor to reopen the panel only when it was hidden by the maximize flow.
  • Add regression tests for the maximize/restore behavior and document the layout behavior in LAYOUT.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/vs/sessions/contrib/editor/test/browser/editor.contribution.test.ts Adds regression coverage for maximize/restore interactions with the Terminal panel.
src/vs/sessions/contrib/editor/browser/editor.contribution.ts Implements conditional panel hiding on maximize and conditional panel restoration on restore.
src/vs/sessions/LAYOUT.md Documents the new maximize/restore behavior and records it in the layout changelog.

@hawkticehurst hawkticehurst force-pushed the agents/maximize-editor-hide-terminal branch from 27bc39c to 89ecdcd Compare April 22, 2026 18:34
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

Screenshot Changes

Base: 16f1ebc9 Current: 7a4936d6

Changed (1)

editor/inlineChatAffordance/InlineChatOverlay/Light
Before After
before after

roblourens
roblourens previously approved these changes Apr 22, 2026
roblourens
roblourens previously approved these changes Apr 22, 2026
hawkticehurst and others added 3 commits April 22, 2026 19:41
Restore the terminal panel when the sessions maximize editor flow hid it, so maximize and restore behave symmetrically.

Add regression coverage for the maximize and restore command behavior and update the sessions layout spec.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dispose the per-test instantiation service in the editor contribution regression tests and assert the maximize call order described by the test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hawkticehurst hawkticehurst merged commit 1a7db07 into main Apr 23, 2026
40 of 41 checks passed
@hawkticehurst hawkticehurst deleted the agents/maximize-editor-hide-terminal branch April 23, 2026 00:41
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants