vscode icon indicating copy to clipboard operation
vscode copied to clipboard

SCM Graph - display list of files in the commit in the graph

Open sanket-bhalerao opened this issue 11 months ago • 12 comments

Type: Feature Request

currently the source control graph does not have a file explorer view. if you have a file with a large number of changes ex. package-lock.json in a commit and you are clicking on the commit it takes a long time to open the diff view. most of the time i want to know the file names i have in the commit and then explore one or two of these file. the current implementation forces to view all file diff instead of specific files, making it slower in my opinion. my suggestion is to have a file explorer kind of view (Git Graph like approach).

VS Code version: Code - Insiders 1.97.0-insider (3d0aeb47a2ecfde9ff5141470b30c36d41c321d9, 2025-01-20T05:04:25.114Z) OS version: Windows_NT x64 10.0.22621 Modes:

sanket-bhalerao avatar Jan 21 '25 08:01 sanket-bhalerao

Image

zanminkian avatar May 14 '25 06:05 zanminkian

the expected file list is part of the VSCode insiders build, i found that out today.

sanket-bhalerao avatar May 14 '25 11:05 sanket-bhalerao

Please try the latest VS Code Insiders release (1.101) as we now expand the commit in the graph. We only support a flat list at the moment as rendering a tree structure within the graph has some complexities. Please give this a try and let us know if you run into any issues. Thanks!

lszomoru avatar May 16 '25 13:05 lszomoru

@lszomoru, i found the file list very useful. 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)

sanket-bhalerao avatar May 19 '25 06:05 sanket-bhalerao

I'm not seeing a visual clue that this "double-click" feature exists. Maybe add an action button alongside the "Open Changes" one which recently arrived.

gjsjohnmurray avatar May 19 '25 06:05 gjsjohnmurray

@gjsjohnmurray, do you have workbench.tree.expandMode set to doubleClick?

lszomoru avatar May 20 '25 11:05 lszomoru

@gjsjohnmurray, do you have workbench.tree.expandMode set to doubleClick?

@lszomoru yes I do. And probably a good thing, at least until we get a Collapse All button. Otherwise each row I click on will expand and I'll have to resort to Ctrl+LeftArrow to collapse them all, or else be careful to click a second time on the first row I selected before selecting the next.

gjsjohnmurray avatar May 21 '25 07:05 gjsjohnmurray

@lszomoru

We only support a flat list at the moment as rendering a tree structure within the graph has some complexities. Please give this a try and let us know if you run into any issues. Thanks!

the tree structure in the graph looks good 🥳

sanket-bhalerao avatar May 22 '25 07:05 sanket-bhalerao

Image

@lszomoru This button not works. Cannot open the file. I use this feature in browser, instead of the edition of electron.

zanminkian avatar May 22 '25 08:05 zanminkian

@lszomoru A suggestion, when opening a commit, it should close the previous one. That means, we should not open more than one commit at the same time. This is inspired by Git Graph extension.

zanminkian avatar May 22 '25 08:05 zanminkian

@lszomoru This button not works. Cannot open the file. I use this feature in browser, instead of the edition of electron.

Thanks! Looks like a regression. Fix will be available in Monday's VS Code Insiders release.

lszomoru avatar May 23 '25 15:05 lszomoru

@lszomoru A suggestion, when opening a commit, it should close the previous one. That means, we should not open more than one commit at the same time. This is inspired by Git Graph extension.

This seems like something that should be configurable.

lszomoru avatar May 23 '25 15:05 lszomoru

Closing as duplicate of https://github.com/microsoft/vscode/issues/248696. For any feedback and additional feature request/bugs please file separate issue(s).

lszomoru avatar Jun 04 '25 13:06 lszomoru