Don't use environment collections when using strictEnv

Fixes #96630
This commit is contained in:
Daniel Imms
2020-04-30 14:09:09 -07:00
parent 40cd17de98
commit d62c642e3f
2 changed files with 12 additions and 8 deletions

View File

@@ -198,8 +198,10 @@ export class ExtHostTerminalService extends BaseExtHostTerminalService {
);
// Apply extension environment variable collections to the environment
const mergedCollection = new MergedEnvironmentVariableCollection(this._environmentVariableCollections);
mergedCollection.applyToProcessEnvironment(env);
if (!shellLaunchConfig.strictEnv) {
const mergedCollection = new MergedEnvironmentVariableCollection(this._environmentVariableCollections);
mergedCollection.applyToProcessEnvironment(env);
}
this._proxy.$sendResolvedLaunchConfig(id, shellLaunchConfig);
// Fork the process and listen for messages