Skip to content

Commit 187ca86

Browse files
author
Kartik Raj
authored
Do not upper case custom env variables (#22004)
For #20950 closes #22005
1 parent f3f48a2 commit 187ca86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/interpreter/activation/terminalEnvVarCollectionService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { getSearchPathEnvVarNames } from '../../common/utils/exec';
3636
import { EnvironmentVariables } from '../../common/variables/types';
3737
import { TerminalShellType } from '../../common/terminal/types';
3838
import { OSType } from '../../common/utils/platform';
39+
import { normCase } from '../../common/platform/fs-paths';
3940

4041
@injectable()
4142
export class TerminalEnvVarCollectionService implements IExtensionActivationService, ITerminalEnvVarCollectionService {
@@ -383,7 +384,7 @@ function getPromptForEnv(interpreter: PythonEnvironment | undefined) {
383384
function normCaseKeys(env: EnvironmentVariables): EnvironmentVariables {
384385
const result: EnvironmentVariables = {};
385386
Object.keys(env).forEach((key) => {
386-
result[key.toUpperCase()] = env[key];
387+
result[normCase(key)] = env[key];
387388
});
388389
return result;
389390
}

0 commit comments

Comments
 (0)