We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc7dcfd commit 0aa9f2cCopy full SHA for 0aa9f2c
src/node/proxy_agent.ts
@@ -38,6 +38,14 @@ export function monkeyPatch(vscode: boolean): void {
38
pa = new (proxyagent as any).default(process.env.HTTP_PROXY)
39
}
40
41
+ /**
42
+ * None of our code ever passes in a explicit agent to the http modules but VS Code's
43
+ * does sometimes but only when a user sets the http.proxy configuration.
44
+ * See https://code.visualstudio.com/docs/setup/network#_legacy-proxy-server-support
45
+ *
46
+ * Even if they do, it's probably the same proxy so we should be fine! And those are
47
+ * deprecated anyway.
48
+ */
49
const http = require("http")
50
const https = require("https")
51
http.globalAgent = pa
0 commit comments