-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed
Labels
apiapi-proposalfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplantree-viewsExtension tree view issuesExtension tree view issues
Milestone
Description
I am looking for an API to expand or collapse a specified TreeItem (both deep and shallow).
For example, I would like to provide a Collapse All command for some of my trees to provide a deep collapse (all descendants from the specified item should collapse). Same with expand.
Here are a few more examples: #30288 (comment), gitkraken/vscode-gitlens#383, gitkraken/vscode-gitlens#275
Something similar to reveal
that would allow for specifying deep (affects all descendants) or not.
expand(element: T, options?: { deep: boolean } = { deep: false }): Thenable<void>
collapse(element: T, options?: { deep: boolean } = { deep: false }): Thenable<void>
fabiospampinato, rugpanov, ryanluker, alefragnani, KamasamaK and 1 more
Metadata
Metadata
Assignees
Labels
apiapi-proposalfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplantree-viewsExtension tree view issuesExtension tree view issues