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

    Bridges kernel connections between VS Code and notebooks. Routes to WebSocket for native notebooks or webview messages for Datalayer notebooks.

    Implements

    • Disposable
    Index

    Constructors

    Properties

    _disposed: boolean = false
    _webviews: Map<string, WebviewPanel> = ...

    Methods

    • Broadcasts kernel selection to all registered webviews. Used when a runtime is selected that should apply to multiple documents.

      Parameters

      • runtime: Runtime

        Selected runtime to broadcast

      Returns Promise<void>

    • Broadcasts kernel termination to all registered webviews. Used when a runtime is terminated that affects multiple documents.

      Returns Promise<void>

    • Connects a webview document (notebook or lexical) to a runtime. Sends runtime information to the webview for ServiceManager creation.

      Parameters

      • uri: Uri

        Document URI

      • runtime: Runtime

        Selected runtime

      Returns Promise<void>

    • Detects the type of notebook (native vs webview).

      Parameters

      • uri: Uri

        Notebook URI

      Returns "webview" | "native"

      "webview" for Datalayer notebooks, "native" for others

    • Finds webview panels for a given URI. Searches through active tab groups.

      Parameters

      • _uri: Uri

        Notebook URI

      Returns WebviewPanel[]

      Array of matching webview panels

    • Gets the current kernel info for a notebook.

      Parameters

      • uri: Uri

        Notebook URI

      Returns Promise<unknown>

      Kernel information or undefined

    • Handles kernel lifecycle commands.

      Parameters

      • uri: Uri

        Notebook URI

      • command: "interrupt" | "restart" | "shutdown"

        Command to execute

      Returns Promise<void>

    • Registers a webview panel for kernel communication.

      Parameters

      • uri: Uri

        Notebook URI

      • webview: WebviewPanel

        Webview panel

      Returns void

    • Sends a kernel status update to a notebook.

      Parameters

      • uri: Uri

        Notebook URI

      • status: "idle" | "busy" | "starting" | "restarting" | "dead"

        Kernel status

      Returns Promise<void>