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

    Class for representing and managing the selection state and the focus of a tree.

    Index
    ids: readonly { focus?: string; node: string; type?: SelectionType }[]

    The stack of selections, by the id of the nodes they refer to.

    Everything this state does with a selection resolves the node through the tree anyway, so keeping the nodes themselves would only pin a subtree that a refresh has since replaced, along with whatever its elements refer to. Keeping the ids also lets a selection outlive its nodes briefly leaving the tree, as happens when a tree updates itself by clearing its contents before filling them in again.

    tree: Tree