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

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

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

    Implements

    Index

    Constructors

    Properties

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

    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 currently cached runtimes. Returns the most recently loaded runtimes without making a new API call.

      Returns RuntimeDTO[]

      Array of cached runtime DTOs

    • 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