Skip to content

Create terminal with environment variables using the new VSC api #4310

Closed as not planned
@DonJayamanne

Description

@DonJayamanne
Full control over createTerminal environment#
The new setting TerminalOptions.strictEnv when set to true will not make any modifications to the terminal environment at all, instead it will be used exactly as passed in by the extension.

// This will create a terminal whose environment only contains the single value
// FOO=BAR.
const terminal = createTerminal({
  name: "Test terminal",
  env: {
    "FOO": "BAR"
  },
  strictEnv: true
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-environmentsFeatures relating to handling interpreter environmentsarea-terminalfeature-requestRequest for new features or functionalityneeds PRReady to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions