Skip to content

Commit 7652230

Browse files
committed
[release] goLanguageServer: fix proxy update logic
Fixes #254 Change-Id: Ifc4b314bb4ba0c6ec8dfa5f57d935829255d5345 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/239739 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> (cherry picked from commit c43eae6) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/239741
1 parent 265ff14 commit 7652230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goLanguageServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ async function goProxyRequest(tool: Tool, endpoint: string): Promise<any> {
666666
}
667667
// Try each URL set in the user's GOPROXY environment variable.
668668
// If none is set, don't make the request.
669-
const proxies = output.trim().split(',|');
669+
const proxies = output.trim().split(/,|\|/);
670670
for (const proxy of proxies) {
671671
if (proxy === 'direct') {
672672
continue;

0 commit comments

Comments
 (0)