Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Tree item representing a space or document in the explorer. Automatically configures tooltip, icon, and command based on item type.

    const item = new SpaceItem("My Space", TreeItemCollapsibleState.Collapsed, {
    type: ItemType.SPACE,
    space: spaceModel
    });

    Hierarchy

    • TreeItem
      • SpaceItem
    Index

    Constructors

    • Creates a new SpaceItem.

      Parameters

      • label: string

        Display label for the tree item

      • collapsibleState: TreeItemCollapsibleState

        Whether item can be expanded/collapsed

      • data: SpaceItemData

        Associated data containing type and models

      • Optionalparent: SpaceItem

        Parent item for hierarchical navigation

      Returns SpaceItem

    Properties

    collapsibleState: TreeItemCollapsibleState

    Whether item can be expanded/collapsed

    Associated data containing type and models

    label: string

    Display label for the tree item

    parent?: SpaceItem

    Parent item for hierarchical navigation

    Methods

    • Generates VS Code command for item interaction. Returns appropriate command based on item type and error state.

      Returns Command

    • Selects document icon based on type and file extension.

      Returns ThemeIcon