Clone process.env to ensure source of truth is not changed

Part of #128745
This commit is contained in:
Daniel Imms 2021-07-27 13:38:23 -07:00
parent 75e221938e
commit 34419f85be

View File

@ -312,7 +312,7 @@ export class LinuxExternalTerminalService extends ExternalTerminalService implem
}
function getSanitizedEnvironment(process: NodeJS.Process) {
const env = process.env;
const env = { ...process.env };
// Refs https://github.com/microsoft/vscode/issues/128745#issuecomment-885981676
sanitizeProcessEnvironment(env, 'VSCODE_BROWSER_CODE_LOADING');
return env;