Datalayer VS Code Extension - v0.0.9
    Preparing search index...
    • Sets up tool execution message listener for webview. Listens for "tool-execution" messages from the extension and executes them via the runner.

      Parameters

      • runner: WebviewRunner

        WebviewRunner instance to use for execution

      • vscodeAPI: { postMessage: (message: any) => void }

        VS Code webview API for posting messages

      • OptionalmutableServiceManager: { updateToPyodide: (url?: string) => void }

      Returns () => void

      Cleanup function to remove the listener

      const runner = createNotebookRunner(notebookToolOperations);
      const cleanup = setupToolExecutionListener(runner, vsCodeAPI);

      // Later, when component unmounts:
      cleanup();