Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to communicate with external pages ? #30

Open
BoBoooooo opened this issue Nov 22, 2023 · 1 comment
Open

How to communicate with external pages ? #30

BoBoooooo opened this issue Nov 22, 2023 · 1 comment

Comments

@BoBoooooo
Copy link

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 !

@progrium
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants