SudoKillMe / vscode-extensions-open-in-browser

81 stars 42 forks source link

Docker support - Integration with VsCode Remote Development? #76

Open rirlswift opened 3 years ago

rirlswift commented 3 years ago

It would be wonderful if the extension could support opening an HTML within a docker container, displaying it in the browser on the host.

I believe it would come down to something like:

  1. User is running in docker via the remote development plugin
  2. Open in browser (detects 1)
  3. does a 'docker cp' to copy the file from the running container to "somewhere" (say /tmp/) and
  4. opens that file (now on the host) where it is 'put' by (3 above) with the browser.

Obviously, the simple use-case.

skeddles commented 2 years ago

it also doesn't seem to work when using WSL, which i assume is the same thing