Protected_Protected ReadonlycontextProtected ReadonlyexpansionProtected ReadonlyfocusProtected ReadonlyloggerProtected ReadonlynavigationProtected ReadonlyonProtected ReadonlyonProtected ReadonlypropsProtectedproviderProtected ReadonlyscmProtected ReadonlyselectionProtected ReadonlytoProtected ReadonlytoProtected ReadonlytreeProtected ReadonlytreeEmit when the tree is changed.
Emit when the node is expanded or collapsed.
Emit when the children of the given node are refreshed.
Emitted when the selection has changed in the tree.
The tree selection, representing the selected nodes from the tree. If nothing is selected, the result will be empty.
Registers the given selection into the tree selection service. If the selection state changes after adding the
selectionOrTreeNode argument, a selection changed event will be fired. If the argument is a tree node,
a it will be treated as a tree selection with the default selection type.
ProtectedbuildTests whether it is possible to navigate backward.
Tests whether it is possible to navigate forward.
ProtectedchangeClears all selected nodes
Collapses recursively. If the node argument is undefined, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Optionalraw: Readonly<CompositeTreeNode>Collapses the given node. If the node argument is undefined, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Optionalraw: Readonly<ExpandableTreeNode>ProtectedcollectProtectedcompareProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateDispose this object.
ProtecteddoProtecteddoProtecteddoProtecteddoProtecteddoExpands the given node. If the node argument is undefined, then expands the currently selected tree node.
If multiple tree nodes are selected, expands the most recently selected tree node.
Optionalraw: Readonly<ExpandableTreeNode>Normally the group would always be expected to be found. However if the tree is restored in restoreState then the tree may be rendered before the groups have been created in the provider. The provider's groups property will be empty in such a situation. We want to render the tree (as that is the point of restoreState, we can render the tree in the saved state before the provider has provided status). We therefore must be prepared to render the tree without having the ScmResourceGroup or ScmResource objects.
ProtectedfireProtectedgetReturns the node currently in focus in this tree, or undefined if no node is focused.
Returns the next selectable tree node.
Optionalnode: TreeNodeReturn a node for the given identifier or undefined if such does not exist.
Returns the previous selectable tree node.
Optionalnode: TreeNodeProtectedgetProtectedhandleProtectedinitProtectedisMarks the give node as busy after a specified number of milliseconds. A token source of the given token should be canceled to unmark.
Navigates backward.
Navigates forward.
Navigates to the given node if it is defined. This method accepts both the tree node and its ID as an argument.
Navigation sets a node as a root node and expand it. Resolves to the node if the navigation was successful. Otherwise,
resolves to undefined.
Opens the given node or the currently selected on if the argument is undefined.
If multiple nodes are selected, open the most recently selected node.
Optionalraw: TreeNodeRefresh children of the root node.
Return a valid refreshed composite root or undefined if such does not exist.
Optionalparent: Readonly<CompositeTreeNode>Protectedrefresheslint-disable-next-line @typescript-eslint/no-explicit-any
ProtectedrevealProtectedselectSelect the given node if it is the ancestor of a selected node.
Selects the next tree node, regardless of its selection or visibility state.
Selects the next node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Optionaltype: SelectionTypeSelects the given tree node. Has no effect when the node does not exist in the tree. Discards any previous selection state.
ProtectedselectSelects the parent node relatively to the selected taking into account node expansion.
Selects the previous tree node, regardless of its selection or visibility state.
Selects the previous node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Optionaltype: SelectionTypeSelects a range of tree nodes. The target of the selection range is the argument, the from tree node is the previous selected node. If no node was selected previously, invoking this method does nothing.
eslint-disable-next-line @typescript-eslint/no-explicit-any
ProtectedtoProtectedtoSelects the given node if it was not yet selected, or unselects it if it was. Keeps the previous selection state and updates it with the current toggle selection.
Toggles the expansion state of the given node. If not give, then it toggles the expansion state of the currently selected node. If multiple nodes are selected, then the most recently selected tree node's expansion state will be toggled.
Optionalraw: Readonly<ExpandableTreeNode>Protectedto
The tree - an abstract data type.