vscode-messenger
vscode-messenger copied to clipboard
RPC messaging library for the VS Code extension platform
Manually tested. TODO: - [x] Discuss the API - [x] Add tests
Great library, especially the request functionality. Any thoughts about supporting notebook messaging with their custom renderer's ? Notebooks use vscode.NotebookRendererMessaging on the extension side, which contains the postMessage and onDidReceiveMessage...
It would be interesting to try out communication with a worker thread. Following should work: - [ ] register a worker (needs a new participant type) - [ ] send...
Thanks for the lib ❤️ Support cancellation. Maybe with `AbortSignal`. It's available in the browser and from Node.js 15+: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal#browser_compatibility ```ts import { isAbortError } from 'abort-controller-x'; import { HOST_EXTENSION,...