Skip to content

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

Description

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
});

Activity

  1. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Feb 7, 2019
  2. DonJayamanne commented on Feb 7, 2019

    @DonJayamanne
    Author
  3. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Feb 7, 2019
  4. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Feb 7, 2019
  5. DonJayamanne commented on Feb 27, 2019

    @DonJayamanne
    Author

    When users use the command Python: Create Terminal, we'll use the environment variables from .env files and provide them here.
    Based on feedback, we might consider pushing changes upstream to VSC.

  6. karrtikr commented on Dec 14, 2022

    @karrtikr

    Closing in favor of #11039.

  7. locked as resolved and limited conversation to collaborators on Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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