Skip to content

Commit 9604256

Browse files
authored
Merge pull request #2168 from Microsoft/master
Fix ${config:a.b} https://github.com/Microsoft/vscode-cpptools/issues…
2 parents 987347c + d3f7018 commit 9604256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extension/src/common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ export function resolveVariables(input: string, additionalEnvironment: {[key: st
175175
}
176176
case "config": {
177177
let config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration();
178-
let keys: string[] = name.split('.');
179-
keys.forEach((key: string) => { config = (config) ? config.get(key) : config; });
180-
newValue = (config) ? config.toString() : undefined;
178+
if (config) {
179+
newValue = config.get<string>(name);
180+
}
181181
break;
182182
}
183183
case "workspaceFolder": {

0 commit comments

Comments
 (0)