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

How to communicate with external pages ?

Open BoBoooooo opened this issue 2 years ago • 1 comments

My scenario is to use the IDE nested in a page, and I need to control the file content in the IDE through the page. Is there any way to expose the memfs instance? thanks !

BoBoooooo avatar Nov 22 '23 01:11 BoBoooooo

My version of this has a very minimal patch to allow extensions to postMessage up to the host page, which allows you to transfer a MessageChannel port from an extension, allowing further communication.

https://github.com/progrium/vscode-web/tree/main/patched

progrium avatar Aug 15 '24 08:08 progrium