Optional ReadonlycheckboxCheckbox state, for a view that shows checkboxes.
Optional ReadonlycollapsibleWhether the row expands.
Optional ReadonlycommandRun when the row is clicked.
Optional ReadonlycontextValue matched by when clauses in menu contributions.
Optional ReadonlydescriptionDimmed text after the label.
Optional ReadonlyiconThe icon, if any.
ReadonlyidUnique across the whole tree, not just among siblings.
ReadonlylabelThe text shown.
Optional ReadonlyresourceThe resource this row stands for. Setting it enables file-icon themes and the built-in file commands in the row's context menu.
Optional ReadonlytooltipHover text.
One row in a tree, as plain data.
The platform's own
TreeItemis a class the adapter builds from this. Keeping the model plain is what lets a provider be written, tested and reasoned about without a VS Code runtime.