Skip to content

Allow a terminal to be launched with an explicit environment #64731

Closed
@GabeDeBacker

Description

@GabeDeBacker

This request is similar to #18522.

VSCode is configuration a bunch of environment variables before the terminal process is launched. For our terminal scenarios (such as setting up our complex build environment) we need to be in complete control of the environment passed in.

In other words, have a flag that tells VSCode to not inherit any of the process environment variables and only use the environment passed in.

In our build environment today, some of the VSCode environment variable values (such as LANG) are not in the proper format when starting the build environment.

We have the ability to specifically set the environment to exactly what we want.

The proposal is adding this:
export interface TerminalOptions {
/**
* When set to true, the process environment from VSCode is ignored and the
* terminal process only contains what is in the "env" member.
*/
noInheritEnv?: boolean;
}

Metadata

Metadata

Assignees

Labels

api-finalizationapi-proposalfeature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions