arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
168 stars 47 forks source link

Support running remotely for VS Code Remote Development #63

Open mjbvz opened 5 years ago

mjbvz commented 5 years ago

Hi, I'm on the VS Code team. We recently released support for Remote Development and I believe that your extension may not work properly when run in a remote workspace

Problem

To make remote development as transparent as possible to users, VS Code distinguishes two classes of extensions:

You can find more details about this architecture here.

Your extension is currently running as workspace extension. This means that the server it starts will be run on the remote machine, which in turn means that webview will not be able to access it using localhost since the webview is running on the user's local machine:

Potential Fix

We've introduced a new webview port mapping API that should make it possible for your extension to run remotely with fairly minor modifications.

Please let me know if you have any questions about the issue or the new api. We've also put together a guide to help you test your extension in remote workspaces

gczobel-f5 commented 5 years ago

I can confirm that the extension is not working using SSH Remote Development.