Skip to content

Commit c23df8f

Browse files
committed
src/goLanguageServer.ts: restart if go.toolsEnvVars changes
go.toolsEnvVars setting affects how gopls launches. See src/goEnv.ts toolExecutionEnvironment. Updates #628 Change-Id: I6294af2d4dd1822b7dfbe571532c6f2d18089608 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/254370 Reviewed-by: Rebecca Stambler <[email protected]>
1 parent f8bce8c commit c23df8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/goLanguageServer.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ export function watchLanguageServerConfiguration(e: vscode.ConfigurationChangeEv
492492
e.affectsConfiguration('go.useLanguageServer') ||
493493
e.affectsConfiguration('go.languageServerFlags') ||
494494
e.affectsConfiguration('go.languageServerExperimentalFeatures') ||
495-
e.affectsConfiguration('go.alternateTools')
495+
e.affectsConfiguration('go.alternateTools') ||
496+
e.affectsConfiguration('go.toolsEnvVars')
497+
// TODO: Should we check http.proxy too? That affects toolExecutionEnvironment too.
496498
) {
497499
restartLanguageServer();
498500
}

0 commit comments

Comments
 (0)