A human-readable string describing this item. When
falsy, it is derived from resourceUri.
Optional id for the tree item that has to be unique across tree. The id is used to preserve the selection and expansion state of the tree item.
If not provided, an id is generated using the tree item's label. Note that when labels change, ids will change and that selection and expansion state cannot be kept stable anymore.
A human-readable string which is rendered less prominent.
true, it is derived from resourceUri and when
falsy, it is not shown.
The tooltip text when you hover over this item.
The Command that should be executed when the tree item is selected.
vscode.diff as command IDs when the tree item is opening
something in the editor. Using these commands ensures that the resulting editor will
appear consistent with how other built-in trees open editors.
TreeItemCollapsibleState of the tree item.
Context value of the tree item. This can be used to contribute item specific actions in the tree.
For example, a tree item is given a context value as
folder. When contributing actions to
menus extension point, you can specify context value for key
when expression like
viewItem == folder.
"when": "viewItem == folder"
This will show action
extension.deleteFolder only for items with
Accessibility information used when screen reader interacts with this tree item.
Generally, a TreeItem has no need to set the
role of the accessibilityInformation;
however, there are cases where a TreeItem is not displayed in a tree-like way where setting the
role may make sense.