The badge to display for this TreeView. To remove the badge, set to undefined.
OptionaldescriptionAn optional human-readable subheading that will be rendered next to the main title. Setting the description to null, undefined, or empty string will remove the message from the view.
OptionalmessageAn optional human-readable message that will be rendered in the view. Setting the message to null, undefined, or empty string will remove the message from the view.
ReadonlyonAn event to signal that an element or root has either been checked or unchecked.
ReadonlyonEvent that is fired when the selection has changed
ReadonlyonEvent that is fired when visibility has changed
ReadonlyonEvent that is fired when an element is collapsed
ReadonlyonEvent that is fired when an element is expanded
ReadonlyselectionCurrently selected elements.
OptionaltitleThe tree view title is initially taken from the extension package.json Changes to the title property will be properly reflected in the UI in the title of the view.
Readonlyvisibletrue if the tree view is visible otherwise false.
Dispose this object.
Reveals the given element in the tree view. If the tree view is not visible then the tree view is shown and element is revealed.
By default revealed element is selected.
In order to not to select, set the option select to false.
In order to focus, set the option focus to true.
In order to expand the revealed element, set the option expand to true. To expand recursively set expand to the number of levels to expand.
TreeView is registered with with must implement getParent method to access this API.Optionaloptions: { expand?: number | boolean; focus?: boolean; select?: boolean }Optional Readonlyexpand?: number | booleanIf true, then the element will be expanded. If a number is passed, then up to that number of levels of children will be expanded
Optional Readonlyfocus?: booleanIf true, then the element will be focused.
Optional Readonlyselect?: booleanIf true, then the element will be selected.
Represents a Tree view