@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface TreeItemData<T>

    Data for a tree item.

    interface TreeItemData<T = unknown> {
        checkboxState?: TreeItemChecked;
        collapsibleState?: TreeItemCollapsible;
        command?: CommandLike;
        contextValue?: string;
        data?: T;
        description?: string;
        icon?: TreeItemIcon;
        id: string;
        label: string;
        resourceUri?: ResourceUri;
        tooltip?: string | MarkdownLike;
    }

    Type Parameters

    • T = unknown
    Index
    checkboxState?: TreeItemChecked

    Checkbox state, for a view that shows checkboxes.

    Toggling in the UI is reported through BaseTreeDataProvider.onDidChangeCheckboxState, which the host wires up for any view declared with module.treeViews.add.

    collapsibleState?: TreeItemCollapsible

    Collapsible state.

    command?: CommandLike

    Command to execute on click.

    contextValue?: string

    Context value for when clauses.

    data?: T

    Custom data.

    description?: string

    Secondary label.

    Icon. A bare string is a theme icon id, which covers almost every case: icon: 'folder'.

    id: string

    Unique identifier. Must be unique across the entire tree, not just among siblings; providers use it as a cache/index key and do not repair duplicates.

    label: string

    Display label.

    resourceUri?: ResourceUri

    The resource this item represents. Setting this enables file-icon-theme icons (when icon is unset) and built-in file commands such as "Copy Path" in the item's context menu.

    tooltip?: string | MarkdownLike

    Tooltip text.