File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,16 @@ import * as proxyagent from "proxy-agent"
19
19
* custom agent from the proxyAgent package.
20
20
*/
21
21
export function monkeyPatch ( vscode : boolean ) : void {
22
- if ( ! process . env . HTTP_PROXY ) {
22
+ // We do not support HTTPS_PROXY here to avoid confusion. proxy-agent will automatically
23
+ // use the correct protocol to connect to the proxy depending on the requested URL.
24
+ //
25
+ // We could implement support ourselves to allow people to configure the proxy used for
26
+ // HTTPS vs HTTP but there doesn't seem to be much value in that.
27
+ //
28
+ // At least of right now, it'd just be plain confusing to support HTTPS_PROXY when proxy-agent
29
+ // will still use HTTP to hit it for HTTP requests.
30
+ const proxyURL = process . env . HTTP_PROXY || process . env . http_proxy
31
+ if ( ! proxyURL ) {
23
32
return
24
33
}
25
34
You can’t perform that action at this time.
0 commit comments