Skip to content

Conversation

@dmitrivMS
Copy link
Contributor

@dmitrivMS dmitrivMS commented Dec 30, 2025

Fixes #161929

The new Collapse All action behaves the same waн as in Explorer view - i.e. it will collapse all second level and below nodes and will only collapse first-level nodes if everything below first level is already collapsed.

Copilot AI review requested due to automatic review settings December 30, 2025 09:35
@dmitrivMS dmitrivMS self-assigned this Dec 30, 2025
@dmitrivMS dmitrivMS added the scm General SCM compound issues label Dec 30, 2025
@dmitrivMS dmitrivMS requested a review from lszomoru December 30, 2025 09:35
@dmitrivMS dmitrivMS enabled auto-merge December 30, 2025 09:35
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "Collapse All" action to the SCM view pane that mimics the behavior found in the Explorer view. The action appears in the context menu when right-clicking on resource groups and intelligently collapses tree nodes in two stages: first collapsing second-level and deeper nodes, then collapsing first-level nodes only if everything below is already collapsed.

Key Changes:

  • Added CollapseAllAction class that registers a context menu action for resource groups
  • Implemented collapseAllResources() method to handle the two-stage collapse logic
  • Action uses the collapseAll Codicon and appears in the 'inline' group of MenuId.SCMResourceGroupContext

@dmitrivMS dmitrivMS changed the title Added Collapse All action to SCM view pane Added Collapse All action to SCM view pane Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scm General SCM compound issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SCM - Add action to collapse all resource groups for a repository

2 participants