Skip to content

Commit

Permalink
Do not upper case custom env variables (#22004)
Browse files Browse the repository at this point in the history
For #20950 closes
#22005
  • Loading branch information
Kartik Raj authored Sep 15, 2023
1 parent f3f48a2 commit 187ca86
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { getSearchPathEnvVarNames } from '../../common/utils/exec';
import { EnvironmentVariables } from '../../common/variables/types';
import { TerminalShellType } from '../../common/terminal/types';
import { OSType } from '../../common/utils/platform';
import { normCase } from '../../common/platform/fs-paths';

@injectable()
export class TerminalEnvVarCollectionService implements IExtensionActivationService, ITerminalEnvVarCollectionService {
Expand Down Expand Up @@ -383,7 +384,7 @@ function getPromptForEnv(interpreter: PythonEnvironment | undefined) {
function normCaseKeys(env: EnvironmentVariables): EnvironmentVariables {
const result: EnvironmentVariables = {};
Object.keys(env).forEach((key) => {
result[key.toUpperCase()] = env[key];
result[normCase(key)] = env[key];
});
return result;
}

0 comments on commit 187ca86

Please sign in to comment.