sessions: add editor part chevron to toggle the secondary side bar#319987
Merged
sandy081 merged 2 commits intoJun 4, 2026
Conversation
Add a chevron toggle to the editor part title bar (shown when the editor is in the grid, not as a modal) that expands the editor by collapsing the auxiliary bar (secondary side bar). When the auxiliary bar is visible a chevron-right "Push Editor Right" hides it; once hidden the same slot shows a chevron-left "Show Secondary Side Bar" that restores it. The flip is driven by AuxiliaryBarVisibleContext. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an editor-titlebar chevron toggle in the Agents window that collapses/expands the secondary side bar (auxiliary bar) to quickly widen the editor area when the editor is shown in the grid.
Changes:
- Register two new editor title-bar actions (chevron right/left) that hide/show the auxiliary bar, switching via
AuxiliaryBarVisibleContext. - Document the new editor-titlebar behavior in
src/vs/sessions/LAYOUT.md. - Add unit tests asserting the new commands call
setPartHidden(..., Parts.AUXILIARYBAR_PART)as expected.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/contrib/editor/browser/editor.contribution.ts | Adds PushEditorRightAction / PullEditorLeftAction to toggle auxiliary bar visibility from the editor title toolbar in the sessions window. |
| src/vs/sessions/contrib/editor/test/browser/editor.contribution.test.ts | Adds tests that validate the new commands hide/show Parts.AUXILIARYBAR_PART. |
| src/vs/sessions/LAYOUT.md | Updates layout spec to describe the new chevron toggle behavior and its context-driven flip. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Move the auxiliary bar chevron to the right of maximize/restore since it changes the right-hand side of the layout (order 99.5, before close). - Restore the editor's right border and corner radii via a .noauxiliarybar rule so it keeps its card appearance when the auxiliary bar is hidden. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
connor4312
approved these changes
Jun 4, 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.
What
Adds a chevron toggle to the editor part title bar in the Agents window (shown when the editor is in the grid, not as a modal) that expands the editor by collapsing the auxiliary bar (secondary side bar).
chevron-rightPush Editor Right hides it.chevron-leftShow Secondary Side Bar that restores it.AuxiliaryBarVisibleContext.The actions live in
MenuId.EditorTitleLayout(right of the tabs) and are gated to the sessions window / main editor group. The auxiliary-bar invariant is only enforced when the editor part becomes visible, so the toggle can collapse the side part while the editor stays open.Why
Gives users a quick way to widen the editor area by hiding the secondary side bar directly from the editor title bar.
Notes for reviewers
src/vs/sessions/contrib/editor/browser/editor.contribution.ts(PushEditorRightAction/PullEditorLeftAction).src/vs/sessions/LAYOUT.md(§5 Editor Modal).editor.contribution.test.ts.compile-check-ts-nativeandvalid-layers-checkpass.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com