Skip to content

asExternalUri doesn't work #1936

Closed
@orshefi

Description

@orshefi

Hi Guys,

I had written a new extension which renders Graphs from matplotlib into vscode webview component, it works great on vscode desktop, but I encounter problems when trying to work with it in code-server.

I cannot state what exactly the problem is but here is the workflow:

  1. my vscode extension starts and listens to requests for plot viewing on port 11111 (POST request)
  2. matplotlib custom backend sends a request to the extension with the url to open in webview
  3. I use vscode.env.asExternalUri tunneling in order to open the url in a webview and embed the generated address in an Iframe.
  4. Usually by now the webview with the webpage would have been loaded, but instead I get and error openning localhost refuse to connect

Screen Shot 2020-08-02 at 11 50 37

Any ideas what went wrong?

  • Web Browser: Chrome
  • Local OS: Ubuntu
  • Remote OS: MacOS
  • Remote Architecture: x86_64
  • code-server --version: v3.4.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh-priorityThis issue needs to be resolved ASAP

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions