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

    Bridge executor - sends messages to extension host via webview API. Used by webviews that need to communicate with extension host.

    const vscode = acquireVsCodeApi();
    const executor = new BridgeExecutor(notebookId, vscode);
    await executor.execute("notebook.insertCell", { cellType: "code", source: "print('hi')" });

    Implements

    • ToolExecutor
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    notebookId: string
    pendingRequests: Map<
        string,
        { reject: (error: Error) => void; resolve: (value: unknown) => void },
    > = ...
    vscode: VSCodeAPI

    Methods

    • Execute a command by sending message to VS Code extension host

      Parameters

      • command: string

        Operation command (e.g., "notebook.insertCell")

      • args: any

        Command arguments

      Returns Promise<any>

      Result from extension host