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

    Function createExtensionRunner

    • Creates a Runner instance for extension-side tool execution

      The Runner uses a smart executor that:

      • Executes VS Code-specific operations locally (they need VS Code APIs)
      • Bridges notebook/lexical operations to webview (they need document state)

      Parameters

      • webviewPanel: WebviewPanel

        VS Code webview panel for message communication

      Returns Runner

      Runner instance configured with smart executor

      const runner = createExtensionRunner(webviewPanel);
      const result = await runner.execute("insertCell", {
      cellType: "code",
      source: "print('hello')"
      });