vscode-messenger icon indicating copy to clipboard operation
vscode-messenger copied to clipboard

Notebook Renderer Messaging

Open mikeburgh opened this issue 1 year ago • 4 comments

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 and is bound to a single notebook renderer on creation.

On the renderer instead of using acquireVsCodeApi, the activation function of the notebook renderer gets passed a context (RendererContext) which contains postMessage and onDidReceiveMessage.

mikeburgh avatar Feb 10 '24 04:02 mikeburgh