Skip to content

Commit

Permalink
Clone process.env to ensure source of truth is not changed
Browse files Browse the repository at this point in the history
Part of #128745
  • Loading branch information
Tyriar committed Jul 27, 2021
1 parent 75e2219 commit 34419f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34419f8

Please sign in to comment.