Skip to content

Commit

Permalink
Fix case issue on Windows with variable resolving
Browse files Browse the repository at this point in the history
Fixes #121847
  • Loading branch information
alexr00 committed Apr 22, 2021
1 parent 2a67034 commit 5c90493
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -235,7 +235,8 @@ export class AbstractVariableResolverService implements IConfigurationResolverSe
case 'env':
if (argument) {
if (environment) {
const env = environment[isWindows ? argument.toLowerCase() : argument];
// Depending on the source of the environment, on Windows, the values may all be lowercase.
const env = isWindows ? (environment[argument.toLowerCase()] ?? environment[argument]) : environment[argument];
if (types.isString(env)) {
return env;
}
Expand Down

0 comments on commit 5c90493

Please sign in to comment.