Theia API Documentation v1.65.0
    Preparing search index...

    SelectionProvider is implemented by services to notify listeners about selection changes.

    interface TreeSelectionService {
        onSelectionChanged: Event<readonly Readonly<SelectableTreeNode>[]>;
        selectedNodes: readonly Readonly<SelectableTreeNode>[];
        addSelection(
            selectionOrTreeNode: Readonly<SelectableTreeNode> | TreeSelection,
        ): void;
        clearSelection(): void;
        dispose(): void;
        restoreState(state: object): void;
        storeState(): object;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    onSelectionChanged: Event<readonly Readonly<SelectableTreeNode>[]>

    Emitted when the selection has changed in the tree.

    selectedNodes: readonly Readonly<SelectableTreeNode>[]

    The tree selection, representing the selected nodes from the tree. If nothing is selected, the result will be empty.

    Methods