Microsoft/vscode

SCM Graph - Add a `Collapse All` action

Open

#275,608 创建于 2025年11月5日

在 GitHub 查看
 (2 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
feature-requesthelp wantedscm

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 14小时 20分钟) (30 天内合并 999 个 PR)

描述

The expand feature could also benefit by a collapse all button in case user wants to collapse all the expanded commit (this is just my personal preference)

Originally posted by @sanket-bhalerao in #238339

When "workbench.tree.expandMode": "singleClick" (the default) each time you click on a row in the graph it expands to show the files involved in the commit.

Keyboard shortcut Ctrl+LeftArrow will collapse all expanded rows, but the user might not be aware of this.

I suggest we add a Collapse All action, defaulting it to appear in the overflow menu of the Graph view but with the option of moving it to be a button on the toolbar.

贡献者指南