nrf-connect.west.env

nRF Connect for VS Code

tags
nRF Connect for VS Code

This configuration setting specifies in which environment west is executed. The setting contains an object that replaces the west environment variables in your system, with the special key $base for determining the initial environment.

{
  "$base": "terminal",
}

The following table lists possible values for $base.

Value for $base Description
"terminal" The default value. With this value set, the extension picks up the platform-specific terminal environment. On Windows, this is equivalent to "process", while on Linux and macOS, this is the output of the bash -c printenv command.
"process" With this value set, the extension picks the default Visual Studio Code environment, which corresponds to the operating system variables.
null With this value set, the extension starts a new environment from scratch.

Note

$base can also be used as a keyword inside variables. In such cases, it is replaced with the value of the variable at the base environment location.

You can add other fields into this object. These will be added as environment variables, overriding any corresponding variables in the base environment.

{
  "$base": "terminal",
  "CUSTOM_ENV_VAR": "custom value",
  "OTHER_ENV_VAR": "another value",
}