stoplightio / vscode-spectral

VS Code extension bringing the awesome Spectral JSON/YAML linter with OpenAPI/AsyncAPI support
https://marketplace.visualstudio.com/items?itemName=stoplight.spectral
Apache License 2.0
72 stars 23 forks source link

Extension ignores http proxy #43

Open mapero opened 4 years ago

mapero commented 4 years ago

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:

Additional context Http proxy to comnect to internet

philsturgeon commented 3 years ago

@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? https://github.com/stoplightio/spectral/issues/1081

DawMatt commented 9 months ago

@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.

adosaiguas commented 5 months ago

I can confirm this is still an issue