Skip to content

Add Collapse All button to Bundle Resource Explorer - #1840

Open
az10az wants to merge 1 commit into
databricks:mainfrom
az10az:feature/collapse-all-bundle-resource-explorer
Open

Add Collapse All button to Bundle Resource Explorer#1840
az10az wants to merge 1 commit into
databricks:mainfrom
az10az:feature/collapse-all-bundle-resource-explorer

Conversation

@az10az

@az10az az10az commented Feb 22, 2026

Copy link
Copy Markdown

Closes #1698

What changed

  • Replaced registerTreeDataProvider with createTreeView + showCollapseAll: true in extension.ts to surface the native VS Code Collapse All button in the tree view title bar
  • Changed default collapsibleState to Collapsed in ResourceTypeHeaderTreeNode, TaskHeaderTreeNode, and getCollapsibleState so all nodes start folded on load

Testing

  • Added unit tests for all three changed modules (22 new assertions, all passing)
  • Manually verified with a local Databricks bundle project containing multiple jobs and tasks

See screenshot of implemented feature:
image

- Use createTreeView with showCollapseAll: true instead of
  registerTreeDataProvider so the Collapse All button appears in the
  tree view title bar (fixes databricks#1698)
- Default ResourceTypeHeaderTreeNode, TaskHeaderTreeNode, and
  getCollapsibleState to Collapsed so all nodes start folded
- Add unit tests for the three changed modules
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 1840
  • Commit SHA: 891b79d8b58f3011eb755135062749cad561d1d2

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant