Skip to content

Commit b085ad4

Browse files
committed
src/config: add toolsEnvVars to the config list to watch
For #1094 Change-Id: Ibe4c405271404ff08200ab6f5d5afcc2a4e162e6 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/300289 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
1 parent 977bb74 commit b085ad4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ import vscode = require('vscode');
88
import { getFromWorkspaceState, updateWorkspaceState } from './stateUtils';
99

1010
const WORKSPACE_IS_TRUSTED_KEY = 'WORKSPACE_IS_TRUSTED_KEY';
11-
const SECURITY_SENSITIVE_CONFIG: string[] = ['goroot', 'gopath', 'toolsGopath', 'alternateTools', 'inferGopath'];
11+
const SECURITY_SENSITIVE_CONFIG: string[] = [
12+
'alternateTools',
13+
'gopath',
14+
'goroot',
15+
'inferGopath',
16+
'toolsGopath',
17+
'toolsEnvVars'
18+
];
1219

1320
// Initialize the singleton defaultConfig and register related commands.
1421
// Prompt if workspace configuration was found but had to be ignored until

0 commit comments

Comments
 (0)