From 3efd515cdfd9b660bf193484caa7fc06efa69836 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Fri, 18 Dec 2020 04:17:18 -0500 Subject: [PATCH] proxy_agent: Fix very embarrassing mistake --- src/node/proxy_agent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/proxy_agent.ts b/src/node/proxy_agent.ts index 172feafcf..dd6a2b059 100644 --- a/src/node/proxy_agent.ts +++ b/src/node/proxy_agent.ts @@ -32,7 +32,7 @@ export function monkeyPatch(vscode: boolean): void { return } - logger.debug(`using $HTTP_PROXY ${process.env.HTTP_PROXY}`) + logger.debug(`using $HTTP_PROXY ${proxyURL}`) let pa: http.Agent // The reasoning for this split is that VS Code's build process does not have @@ -42,9 +42,9 @@ export function monkeyPatch(vscode: boolean): void { // I can't enable esModuleInterop in VS Code's build process as it breaks and spits out // a huge number of errors. if (vscode) { - pa = new (proxyagent as any)(process.env.HTTP_PROXY) + pa = new (proxyagent as any)(proxyURL) } else { - pa = new (proxyagent as any).default(process.env.HTTP_PROXY) + pa = new (proxyagent as any).default(proxyURL) } /**