Allow terminals to launch using clean env on Mac and Linux

Fixes #70248
This commit is contained in:
Daniel Imms
2019-06-12 16:29:02 -07:00
parent a6a376e933
commit 86aa7aef36
8 changed files with 75 additions and 5 deletions

View File

@@ -500,7 +500,10 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
variableResolver,
isWorkspaceShellAllowed,
pkg.version,
terminalConfig.get<boolean>('setLocaleVariables', false)
terminalConfig.get<boolean>('setLocaleVariables', false),
// Always inherit the environment as we need to be running in a login shell, this may
// change when macOS servers are supported
true
);
// Fork the process and listen for messages