Home > OS >  VSCode WebViewPanel behind corporate proxy
VSCode WebViewPanel behind corporate proxy

Time:01-13

I am using the "C4 DSL Extension" of VSCode to show previews of my architecture diagrams. The previews are rendered through the WebviewPanel. The source code can be found here: enter image description here

Is this behavior intended? I could not find a setting in VSCode to enable WebviewPanel to request via proxy.

Note: I am using the Linux version of VSCode.

CodePudding user response:

I found a solution by setting the http.proxy variable in VSCode. We are using authentication for proxies and previously I exported the http_proxy environment variable in the form of http_proxy=http://<username>:<password>@<host>:<port>.

However, VSCode expects this variable without credentials: http_proxy=http://<host>:<port>. Now I don't understand where it talks the credentials from, but it works.

  •  Tags:  
  • Related