stoplightio / vscode-spectral

VS Code extension bringing the awesome Spectral JSON/YAML linter with OpenAPI/AsyncAPI support

Home Page:https://marketplace.visualstudio.com/items?itemName=stoplight.spectral

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension ignores http proxy

mapero opened this issue · comments

Describe the bug
it seems like the visual studio code extension does not use the configured http proxy (http_proxy, https_proxy) in vscode. I am not able to load spectral “extends” from http / https behind corporate proxy. I am unsure to report this as a bug, since I do not have comprehensive logs whats happening, and why it fails.

It seems like spectral is using “PROXY” instead of the linux standard “http_proxy” / “https_proxy”.

Expected behavior
Use vscode proxy settings or linux default http_proxy / https_proxy

Environment:

  • Operating System: Linux

Additional context
Http proxy to comnect to internet

@mapero Some work was done to make Spectral support HTTP Proxies via the JS API, I'm wondering if this has helped your situation? It might not be enough, we might need to get some values passed through VS Code and into the JS API, but I was hoping you could help us out and take a look at this one? stoplightio/spectral#1081

@philsturgeon , @mapero , this issue still occurs.

The changes made to Spectral to support proxies work when I run Spectral at the command line, including when I run it using the terminal within VS Code itself. The same configuration does not work with the VS Code extension.