Skip to content

Tree

Tag name: <vscode-tree>

Properties

arrowsreflects
Namearrows
Attributearrows
Type

boolean

Default

false

data
Namedata
Attributedata
Type

TreeItem[]

indent
Nameindent
Attributeindent
Type

number

Default

8

indentGuidesreflects
NameindentGuides
Attributeindent-guides
Type

boolean

Default

false

multilinereflects
Namemultiline
Attributemultiline
Type

boolean

Default

false

tabindexreflects
Nametabindex
Attributetabindex
Type

number

Default

0

versionreadonly
Nameversion
Type

string

Description

VSCode Elements version

Methods

closeAll() : void
NamecloseAll
Description

Closes all opened tree items recursively.

deselectAll()
NamedeselectAll
Description

Deselects all selected items.

getItemByPath(path: number[])
NamegetItemByPath
Description

Returns a reference to a TreeItem object by path.

Events

vsc-run-actiondeprecated
Namevsc-run-action
TypeCustomEvent
Description

Dispatched when an action icon is clicked.

vsc-selectdeprecated
Namevsc-select
TypeCustomEvent
Description

Dispatched when an item is selected.

vsc-tree-action
Namevsc-tree-action
TypeVscTreeActionEvent
Description

Dispatched when an action icon is clicked.

vsc-tree-select
Namevsc-tree-select
TypeVscTreeSelectEvent
Description

Dispatched when an item is selected.

CSS Custom Properties

--vscode-focusBorder
Name--vscode-focusBorder
--vscode-font-family
Name--vscode-font-family
--vscode-font-size
Name--vscode-font-size
--vscode-font-weight
Name--vscode-font-weight
--vscode-list-activeSelectionBackground
Name--vscode-list-activeSelectionBackground
--vscode-list-activeSelectionForeground
Name--vscode-list-activeSelectionForeground
--vscode-list-focusOutline
Name--vscode-list-focusOutline
--vscode-list-hoverBackground
Name--vscode-list-hoverBackground
--vscode-list-hoverForeground
Name--vscode-list-hoverForeground
--vscode-list-inactiveFocusBackground
Name--vscode-list-inactiveFocusBackground
--vscode-list-inactiveFocusOutline
Name--vscode-list-inactiveFocusOutline
--vscode-list-inactiveSelectionBackground
Name--vscode-list-inactiveSelectionBackground
--vscode-list-inactiveSelectionForeground
Name--vscode-list-inactiveSelectionForeground
--vscode-list-inactiveSelectionIconForeground
Name--vscode-list-inactiveSelectionIconForeground
--vscode-tree-inactiveIndentGuidesStroke
Name--vscode-tree-inactiveIndentGuidesStroke
--vscode-tree-indentGuidesStroke
Name--vscode-tree-indentGuidesStroke

CSS Parts

caption-decoration
counter-badge-decoration
decorations
Description

Container of decorations

description
filled-circle-decoration
text-content