Protected_Protected_Protected_Protected_Protected_Protected_Protected ReadonlyexpansionProtected ReadonlyfilterProtected ReadonlyfocusProtectedlastProtectedlastProtectedlastProtectedlastProtected ReadonlyloggerProtected ReadonlynavigationProtected ReadonlyonReadonlyonProtected ReadonlyonProtected ReadonlyonProtected ReadonlypreferenceProtected ReadonlyschemaProtected ReadonlyscopeProtected ReadonlyselectionProtected ReadonlytoProtected ReadonlytreeProtected 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.
ProtectedapplyTests whether it is possible to navigate backward.
Tests whether it is possible to navigate forward.
ProtectedcategoryReturns the id of the nearest composite (category) ancestor of node,
inclusive of node itself. Returns undefined if no category ancestor is found.
Clears 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>ProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateDispose this object.
ProtecteddoProtecteddoProtecteddoProtecteddoProtecteddoProtectedensureFalls back to the default category when the selected category has no settings left to show, e.g. after switching to a scope in which none of its settings are valid. Otherwise the editor would show an empty page for a category the tree no longer lists. Clears the selection instead if the default category has no settings to show either.
ProtectedexpandExpands 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>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: TreeNodeProtectedhandleProtectedhasProtectedinitProtectedisMarks 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: TreeNodeProtectedpassesRefresh children of the root node.
Return a valid refreshed composite root or undefined if such does not exist.
Optionalparent: Readonly<CompositeTreeNode>Remove the given node and all of its descendants from the tree's internal id-to-node index. Safe to call on already-detached subtrees.
Callers that mutate the tree structure directly via
CompositeTreeNode.removeChild should invoke this (or pass the tree
to removeChild) to keep getNode and validateNode from
returning orphaned nodes.
ProtectedrestoreRe-applies the selection after the tree has been rebuilt with new node instances,
e.g. when plugins contribute preferences after startup. The selection state resolves
nodes by id, but the rebuilt node lacks the selected flag that drives the tree
highlight. If the selected node is gone from the new schema, falls back to the
default category.
ProtectedselectSelects the 'Commonly Used' category, the default detail page of the settings editor.
true if the category was found and selected.
ProtectedselectSelect the given node if it is the ancestor of a selected node.
Selects node to mirror the editor's scroll position in the tree. Unlike an explicit
selection, this does not change the category filter: scrolling must never narrow the
settings editor, only an explicit selection may.
true if selection changed, false otherwise
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.
ProtectedselectSelects 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.
Store selection state.
Selects 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>ProtectedupdateProtectedupdateProtectedupdateProtectedwith
The tree - an abstract data type.