0

I am running vs code server in an ec2 instance. It is exposed to the internet so I can access it by going to the url http://ec2-<some_ip>.amazonaws.com.
I have also developed an extension that is installed and running in this remote vs code server.

I have added a proxy that will redirect my-vs-code-ide.mydomain.com to the above server at "http://ec2-<some_ip>.amazonaws.com". Now I am embedding this url as an iframe inside my web application (my-app.mydomain.com). I am now able to view the remote vs code server inside an iframe in my parent website.

Now how can i communicate between the parent website and my custom extension? I know I can communicate between parent and the iframe using postMessage, but how would i communicate with a particular extension?

This github discussion is the only relevant info i found on the internet but no approach was described there

0 Answers0