TreeItem$Typings extension

on

Properties

accessibilityInformation AccessibilityInformation

Available on TreeItem, provided by the TreeItem$Typings extension

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.
getter/setter pair
checkboxState Object

Available on TreeItem, provided by the TreeItem$Typings extension

{@link TreeItemCheckboxState TreeItemCheckboxState} of the tree item. {@link TreeDataProvider.onDidChangeTreeData onDidChangeTreeData} should be fired when {@link TreeItem.checkboxState checkboxState} changes.
getter/setter pair
collapsibleState TreeItemCollapsibleState

Available on TreeItem, provided by the TreeItem$Typings extension

{@link TreeItemCollapsibleState} of the tree item.
getter/setter pair
command Command

Available on TreeItem, provided by the TreeItem$Typings extension

The {@link Command} that should be executed when the tree item is selected.
getter/setter pair
contextValue String

Available on TreeItem, provided by the TreeItem$Typings extension

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 view/item/context using menus extension point, you can specify context value for key viewItem in when expression like viewItem == folder.
getter/setter pair
description Object

Available on TreeItem, provided by the TreeItem$Typings extension

A human-readable string which is rendered less prominent. When true, it is derived from {@link TreeItem.resourceUri resourceUri} and when falsy, it is not shown.
getter/setter pair
iconPath Object

Available on TreeItem, provided by the TreeItem$Typings extension

The icon path or {@link ThemeIcon} for the tree item. When falsy, {@link ThemeIcon.Folder Folder Theme Icon} is assigned, if item is collapsible otherwise {@link ThemeIcon.File File Theme Icon}. When a file or folder {@link ThemeIcon} is specified, icon is derived from the current file icon theme for the specified theme icon using {@link TreeItem.resourceUri resourceUri} (if provided).
getter/setter pair
id String

Available on TreeItem, provided by the TreeItem$Typings extension

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.
getter/setter pair
label Object

Available on TreeItem, provided by the TreeItem$Typings extension

A human-readable string describing this item. When falsy, it is derived from {@link TreeItem.resourceUri resourceUri}.
getter/setter pair
resourceUri Uri

Available on TreeItem, provided by the TreeItem$Typings extension

The {@link Uri} of the resource representing this item.
getter/setter pair
tooltip ↔ dynamic

Available on TreeItem, provided by the TreeItem$Typings extension

The tooltip text when you hover over this item.
getter/setter pair