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

    Document bridge interface for document lifecycle management. Implementations should handle downloading, caching, and runtime management.

    interface IDocumentBridge {
        clearDocument(documentId: string): void;
        ensureRuntime(documentId: string): Promise<Runtime>;
        getActiveRuntimes(): string[];
        getDocumentMetadata(uri: Uri): DocumentMetadata;
        getMetadataById(documentId: string): DocumentMetadata;
        getMetadataByPath(inputPath: string): DocumentMetadata;
        openDocument(
            document: Document,
            spaceId?: string,
            spaceName?: string,
        ): Promise<Uri>;
    }
    Index

    Methods

    • Ensures a runtime exists for the document. Verifies cached runtime status or creates a new one if needed.

      Parameters

      • documentId: string

        Document UID needing runtime

      Returns Promise<Runtime>

      Runtime instance or undefined if creation fails

    • Opens a document from Datalayer platform. Downloads content, caches locally, and creates virtual URI for VS Code.

      Parameters

      • document: Document

        The document to open

      • OptionalspaceId: string

        ID of the containing space

      • OptionalspaceName: string

        Name of the containing space

      Returns Promise<Uri>

      Virtual URI for the opened document