Skip to content
VSCode Elements

TreeItem

Tag name: <vscode-tree-item>

Represents an item in a Tree component.

Properties

active
Nameactive
Attributeactive
Type

boolean

Default

false

branchreflects
Namebranch
Attributebranch
Type

boolean

Default

false

hasActiveItem
NamehasActiveItem
AttributehasActiveItem
Type

boolean

Default

false

hasSelectedItem
NamehasSelectedItem
AttributehasSelectedItem
Type

boolean

Default

false

levelreflects
Namelevel
Attributelevel
Type

number

Default

0

openreflects
Nameopen
Attributeopen
Type

boolean

Default

false

path
Namepath
Type

number[]

selectedreflects
Nameselected
Attributeselected
Type

boolean

versionreadonly
Nameversion
Type

string

Description

VSCode Elements version

Methods

warn(message: string)
Namewarn

Slots

default/unnamed
Description

Main content

actions
Description

Container for action buttons.

decoration
Description

Container for small decorative elements aligned to the right edge of the item.

description
Description

Description of the item. Displayed with a smaller font size and a less prominent color.

icon-branch
Description

Custom icon for a closed branch item.

icon-branch-opened
Description

Custom icon for an opened branch item.

icon-leaf
Description

Custom icon for a leaf item.