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

    Tree data provider for the Datalayer Runtimes view. Implements VS Code's TreeDataProvider interface to display running runtimes and snapshots in organized sections with automatic refresh for time remaining updates.

    const provider = new RuntimesTreeProvider(authProvider);
    provider.refresh(); // Refresh entire tree

    Implements

    • TreeDataProvider<RuntimesTreeItemType>
    Index

    Constructors

    Properties

    _onDidChangeTreeData: EventEmitter<void | RuntimesTreeItemType> = ...
    authService: SDKAuthProvider
    onDidChangeTreeData: Event<void | RuntimesTreeItemType> = ...

    An optional event to signal that an element or root has changed. This will trigger the view to update the changed element/root and its children recursively (if shown). To signal that root has changed, do not pass any argument or pass undefined or null.

    refreshTimer?: Timeout
    runtimesCache: RuntimeDTO[] = []
    snapshotsCache: RuntimeSnapshotDTO[] = []

    Methods

    • Gets the children of a tree item.

      Parameters

      • Optionalelement: RuntimesTreeItemType

        The parent element, or undefined for root

      Returns Promise<RuntimesTreeItemType[]>

      Array of tree items

    • Gets the tree item representation for display.

      Parameters

      • element: RuntimesTreeItemType

        The tree item to convert

      Returns TreeItem

      The tree item for VS Code to display

    • Loads snapshots from the SDK. Updates the cache with fresh snapshot data, filtering out deleted snapshots.

      Returns Promise<void>

    • Starts automatic refresh timer to update time remaining. Refreshes tree every 30 seconds to show updated expiration times.

      Returns void