Resolve profile environment when launching default

Fixes #122358
This commit is contained in:
Daniel Imms 2021-04-28 08:07:54 -07:00
parent 13d3c0e757
commit 24faa3733f

View file

@ -64,6 +64,13 @@ export abstract class BaseTerminalProfileResolverService implements ITerminalPro
}
shellLaunchConfig.executable = resolvedProfile.path;
shellLaunchConfig.args = resolvedProfile.args;
if (resolvedProfile.env) {
if (shellLaunchConfig.env) {
shellLaunchConfig.env = { ...shellLaunchConfig.env, ...resolvedProfile.env };
} else {
shellLaunchConfig.env = resolvedProfile.env;
}
}
// Verify the icon is valid, and fallback correctly to the generic terminal id if there is
// an issue