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

    A default implementation of the tree.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _root: undefined | TreeNode
    logger: ILogger
    nodes: { [id: string]: undefined | Mutable<TreeNode> }
    notification: MessageService
    onChangedEmitter: Emitter<void>
    onDidChangeBusy: Event<TreeNode>

    Emits when the busy state of the given node is changed.

    onDidChangeBusyEmitter: Emitter<TreeNode>
    onDidChangeWelcomeState: Event<void> = ...
    onDidChangeWelcomeStateEmitter: Emitter<void> = ...
    onDidUpdate: Event<TreeNode[]>

    An update to the tree node occurred, but the tree structure remains unchanged

    onDidUpdateEmitter: Emitter<TreeNode[]>
    onNodeRefreshedEmitter: Emitter<CompositeTreeNode & WaitUntilEvent>
    sharedStyle: PluginSharedStyle
    toDisposeOnSetRoot: DisposableCollection

    Accessors

    • get onChanged(): Event<void>

      Emit when the tree is changed.

      Returns Event<void>

    • get root(): undefined | TreeNode

      A root node of this tree. Undefined if there is no root node. Setting a root node refreshes the tree.

      Returns undefined | TreeNode

    • set root(root: undefined | TreeNode): void

      A root node of this tree. Undefined if there is no root node. Setting a root node refreshes the tree.

      Parameters

      Returns void

    Methods

    • Parameters

      Returns void

    • Dispose this object.

      Returns void

    • Returns void

    • Return a node for the given identifier or undefined if such does not exist.

      Parameters

      • id: undefined | string

      Returns undefined | TreeNode

    • Marks the give node as busy after a specified number of milliseconds. A token source of the given token should be canceled to unmark.

      Parameters

      Returns Promise<void>

    • Remove the given node and all of its descendants from the tree's internal id-to-node index. Safe to call on already-detached subtrees.

      Callers that mutate the tree structure directly via CompositeTreeNode.removeChild should invoke this (or pass the tree to removeChild) to keep getNode and validateNode from returning orphaned nodes.

      Parameters

      Returns void

    • Return a valid node in this tree matching to the given; otherwise undefined.

      Parameters

      Returns undefined | TreeNode