Add 'Collapse All Groups' action to sessions filter menu#312056
Merged
Add 'Collapse All Groups' action to sessions filter menu#312056
Conversation
Add a new menu action in the sessions view filter submenu that collapses all section groups (time-based or workspace-based). This adds: - collapseAllSections() to ISessionsList interface and SessionsList class - CollapseAllGroupsAction registered in SessionsViewFilterSubMenu Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new command to the Agents window Sessions view filter (gear) menu to let users collapse all session groups at once, leveraging the existing tree-based sessions list UI.
Changes:
- Registered a new
CollapseAllGroupsActionunder the sessions view filter submenu. - Extended
ISessionsList/SessionsListwithcollapseAllSections()that delegates totree.collapseAll().
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts | Adds the “Collapse All Groups” action to the sessions filter submenu. |
| src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts | Adds collapseAllSections() to collapse all nodes in the sessions tree. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 1
Suspend the onDidChangeCollapseState listener during collapseAll and persist all section states in a single write via saveBulkCollapseState. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
anthonykim1
approved these changes
Apr 23, 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.
Adds a Collapse All Groups action to the sessions view filter submenu (gear icon) in the Agents window. This lets users quickly collapse all section groups (time-based or workspace-based) with one click.
Changes
sessionsList.ts: AddedcollapseAllSections()toISessionsListinterface andSessionsListclass, delegating totree.collapseAll()sessionsViewActions.ts: RegisteredCollapseAllGroupsActioninSessionsViewFilterSubMenu(group4_collapse)