New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate setting Electron's proxy from user setting #94148
Comments
(Experimental duplicate detection) |
Where do you set it in the OS? Does |
I have the HTTP_PROXY, and HTTPS_PROXY set in environment variables. And I have set it in the network settings in ubuntu. I also tried to code --proxy-server="http://my.proxy.ip:80" still no go. |
@ForceConstant What's in the dev console ( /cc @deepak1556 |
So it turns out that I had the syntax a little wrong on the --proxy-server option. I had the http:// in the url. And now it works. Thanks. But why doesn't the extensions part use setting.json info? |
We are not in control of the settings Chromium's network implementation is using. The only way to set that is through the OS settings (although I'm not sure which ones on Linux, @deepak1556 do you know?) or through the command line option. @deepak1556 is there a way for us to set the proxy server on Chromium when the user sets one in our settings.json? |
@chrmarti its achievable using the By default chromium and electron should pick the system proxy configuration if the platform supports it. @ForceConstant does chromium browser on your system allow setting proxy via |
Setting the proxy on the session now if the |
@chrmarti can you provide details about what to test and how? |
The best I currently have is:
Testing this now I don't see the update check, the download of VS Code and extensions. Reopening for investigation. |
@chrmarti for something unrelated, I was using https://github.com/joaomoreno/proxy-containers/tree/master/basic-auth and was able to verify that proxy settings are respected through settings.json and env variables. Tried exactly the same steps as above only the containers are different. |
@deepak1556 Thanks, wasn't aware of that. I ended up coming up with my own container for the policy issue in auth.html from last week: https://github.com/microsoft/vscode-proxy-agent/tree/master/tests/test-http-auth-proxy. |
How can I request that this:
Be added to the documentation (unless I am missing it)? This page https://code.visualstudio.com/docs/setup/network#_legacy-proxy-server-support seems to state explicitly that http.proxy will not be respected by VSCode, and is there only for extensions and the CLI. It is very helpful that VSCode also respects the http.proxy configuration, I just want to make sure I am using things as-intended, and not relying on functionality which may break in the future. |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: