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

    Tree data provider for the Datalayer Spaces view. Implements VS Code's TreeDataProvider interface to display spaces and documents with caching for improved performance.

    const provider = new SpacesTreeProvider(authProvider);
    provider.refresh(); // Refresh entire tree
    provider.refreshSpace(spaceId); // Refresh specific space

    Implements

    Index

    Constructors

    Properties

    _onDidChangeTreeData: EventEmitter<void | SpaceItem> = ...
    authService: SDKAuthProvider
    itemsCache: Map<string, (Notebook | Lexical)[]> = ...
    onDidChangeTreeData: Event<void | SpaceItem> = ...

    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.

    spacesCache: Map<string, Space[]> = ...

    Methods

    • Fetches and returns items within a specific space.

      Parameters

      • space: unknown

        The space object containing space metadata

      Returns Promise<SpaceItem[]>

      Array of SpaceItems representing documents in the space

    • Gets the tree item representation for display.

      Parameters

      Returns TreeItem

      The tree item for VS Code to display