vscode-perforce icon indicating copy to clipboard operation
vscode-perforce copied to clipboard

Add a way to collapse/expand all changelists in the SCM pane

Open davidavetyan opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Currently all changelists are shown expanded in the SCM pane. In case of many changelists with many files in them, I have to collapse them one-by-one and then open the one changelist I'm interested in.

Describe the solution you'd like It would be helpful to have a right click menu action for collapsing/expanding all changelists (for example when right clicking on Default Changelist or perhaps somewhere else in the pane).

Describe alternatives you've considered An alternative could be to have a setting in for the extension, which allows to change the default collapsed/expanded state of changelists when first opening VS Code.

davidavetyan avatar Feb 02 '24 12:02 davidavetyan

Hi, thanks for suggesting. However I don't think we have any way to control the expanded / collapsed state of a particular changelist via the extension API. This would need to be requested directly from vs code. A likely problem of course is that the major source control providers don't have this multi-changelist concept and just have e.g. a couple of groups for changed and staged files so it's not likely to be prioritized in a vs code release

mjcrouch avatar Feb 02 '24 13:02 mjcrouch

Understood, thanks for the quick response.

davidavetyan avatar Feb 02 '24 13:02 davidavetyan