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

    Manages document lifecycle between Datalayer platform and local filesystem. Singleton service that handles document caching and runtime association.

    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<RuntimeDTO>

      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.

    • Gets the singleton instance of DocumentBridge (synchronous). Use getInstanceAsync() for better reliability during startup.

      Parameters

      • Optionalcontext: ExtensionContext

        Extension context (required on first call).

      • Optionaldatalayer: DatalayerClient

        Datalayer instance (required on first call).

      Returns DocumentBridge

      The singleton instance.

      Use getInstanceAsync() for documents opened during VS Code startup.

    • Gets the singleton instance of DocumentBridge. Waits for extension initialization if necessary.

      Parameters

      • Optionalcontext: ExtensionContext

        Extension context (required on first call).

      • Optionaldatalayer: DatalayerClient

        Datalayer instance (required on first call).

      Returns Promise<DocumentBridge>

      The singleton instance.