Optional
collapsibleState: TreeItemCollapsibleStateTreeItemCollapsibleState of the tree item. Default is TreeItemCollapsibleState.None
The uri of the resource representing this item.
Optional
collapsibleState: TreeItemCollapsibleStateTreeItemCollapsibleState of the tree item. Default is TreeItemCollapsibleState.None
Optional
accessibilityAccessibility 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.
Optional
checkboxTreeItemCheckboxState of the tree item. onDidChangeTreeData should be fired when checkboxState changes.
Optional
Readonly
accessibilityReadonly
state: TreeItemCheckboxStateOptional
Readonly
tooltip?: stringOptional
collapsibleTreeItemCollapsibleState of the tree item.
Optional
commandThe command which should be run when the tree item is selected.
Optional
contextContext 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 view/item/context
using menus
extension point, you can specify context value for key viewItem
in when
expression like viewItem == folder
.
"contributes": {
"menus": {
"view/item/context": [
{
"command": "extension.deleteFolder",
"when": "viewItem == folder"
}
]
}
}
This will show action extension.deleteFolder
only for items with contextValue
is folder
.
Optional
descriptionA human readable string which is rendered less prominent.
When true
, it is derived from resourceUri and when falsy
, it is not shown.
Optional
iconThe icon path or ThemeIcon for the tree item.
When falsy
, Folder Theme Icon is assigned, if item is collapsible otherwise File Theme Icon.
When a ThemeIcon is specified, icon is derived from the current file icon theme for the specified theme icon using resourceUri (if provided).
Optional
idOptional 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.
Optional
labelA human-readable string describing this item. When falsy
, it is derived from resourceUri.
Optional
resourceOptional
shareableAn optional property which, when set, inlines a Share
option in the context menu for this tree item.
Optional
tooltipThe tooltip text when you hover over this item.
A human-readable string describing this item