From c43eae60722e08d27c824a365473a291d288a316 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Wed, 24 Jun 2020 12:23:36 -0400 Subject: [PATCH] goLanguageServer: fix proxy update logic Fixes golang/vscode-go#254 Change-Id: Ifc4b314bb4ba0c6ec8dfa5f57d935829255d5345 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/239739 Reviewed-by: Hyang-Ah Hana Kim --- src/goLanguageServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goLanguageServer.ts b/src/goLanguageServer.ts index 53830cba69..ae0aee7c8f 100644 --- a/src/goLanguageServer.ts +++ b/src/goLanguageServer.ts @@ -666,7 +666,7 @@ async function goProxyRequest(tool: Tool, endpoint: string): Promise { } // Try each URL set in the user's GOPROXY environment variable. // If none is set, don't make the request. - const proxies = output.trim().split(',|'); + const proxies = output.trim().split(/,|\|/); for (const proxy of proxies) { if (proxy === 'direct') { continue;