Sets up tool execution message listener for webview. Listens for "tool-execution" messages from the extension and executes them via the runner.
WebviewRunner instance to use for execution
VS Code webview API for posting messages
Optional
Cleanup function to remove the listener
const runner = createNotebookRunner(notebookToolOperations);const cleanup = setupToolExecutionListener(runner, vsCodeAPI);// Later, when component unmounts:cleanup(); Copy
const runner = createNotebookRunner(notebookToolOperations);const cleanup = setupToolExecutionListener(runner, vsCodeAPI);// Later, when component unmounts:cleanup();
Sets up tool execution message listener for webview. Listens for "tool-execution" messages from the extension and executes them via the runner.