You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove messaging APIs from the renderer. These didn't work/didn't work well and we have directed authors to use kernel preloads for communication.
Add an event and an event available as globals in the kernel for them to communicate:
declare global {constonDidReceiveKernelMessage: VSCodeEvent<any>;functionpostKernelMessage(data: unknown): void;}
Preloads can reference this by (update @types/vscode-notebook-renderer and then) adding "types": ["@types/vscode-notebook-renderer/preload"] to their tsconfig.json
Breaking: removed the generic postMessage handler -- extensions should use postKernelMessage instead.
The text was updated successfully, but these errors were encountered:
…d type by @connor4312
* vscode-notebook-renderer: update to separate preload type
Fixesmicrosoft/vscode#122944
* rm unnecessary OTHER_FILES
* remove no-longer-necessary id pass to acquireNotebookRendererApi
* update test
Also, while I was there -- with our new way of dealing with preloads, we no longer need to have extensions pass their ID when calling the acquire API. We already know it.
@types/vscode-notebook-renderer
and then) adding"types": ["@types/vscode-notebook-renderer/preload"]
to their tsconfig.jsonpostMessage
handler -- extensions should usepostKernelMessage
instead.The text was updated successfully, but these errors were encountered: