Creates a new SpaceItem.
Display label for the tree item
Whether item can be expanded/collapsed
Associated data containing type and models
Optionalparent: SpaceItemParent item for hierarchical navigation
ReadonlycollapsibleWhether item can be expanded/collapsed
ReadonlydataAssociated data containing type and models
ReadonlylabelDisplay label for the tree item
Optional ReadonlyparentParent item for hierarchical navigation
PrivategetGenerates VS Code command for item interaction. Returns appropriate command based on item type and error state.
PrivategetSelects document icon based on type and file extension.
PrivategetSelects appropriate VS Code theme icon based on item type.
PrivategetGenerates tooltip text based on item type and data.
Tree item representing a space or document in the explorer. Automatically configures tooltip, icon, and command based on item type.
Example