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

    Bidirectional registry for document ID ↔ document URI mapping. Handles both notebooks (.ipynb) and lexical documents (.lexical).

    Index

    Constructors

    Methods

    • Get webview panel for active document. Checks active custom editor tab (notebook or lexical).

      Returns WebviewPanel

      Webview panel or undefined if no active document with webview.

    • Convert document URI to document ID.

      Parameters

      • documentUri: string

        String representation of the document's VS Code URI.

      Returns string

      The unique identifier assigned during registration.

      Error if the URI is not registered.

    • Get registry statistics.

      Returns { lexicals: number; notebooks: number; total: number }

      Object with total, notebook, and lexical document counts.

      • lexicals: number

        Number of registered lexical documents

      • notebooks: number

        Number of registered notebooks

      • total: number

        Total number of registered documents

    • Convert document ID to document URI.

      Parameters

      • documentId: string

        Unique identifier assigned during registration.

      Returns string

      The VS Code URI string associated with the given identifier.

      Error if the identifier is not registered.

    • Get webview panel for a document.

      Parameters

      • documentUri: string

        String representation of the document's VS Code URI.

      Returns WebviewPanel

      Webview panel or undefined if not registered or no webview.

    • Register a document with its ID, URI, and type.

      Parameters

      • documentId: string

        Document identifier (UID for remote, URI for local).

      • documentUri: string

        VS Code document URI.

      • type: DocumentType

        Document type (notebook or lexical).

      • OptionalwebviewPanel: WebviewPanel

        Optional webview panel for tool execution messaging.

      Returns void