mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
Clone process.env to ensure source of truth is not changed
Part of #128745
This commit is contained in:
parent
75e221938e
commit
34419f85be
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue