Skip to content

Provide and API that returns the activate environment variables merged with variables from .env files #20663

@DonJayamanne

Description

@DonJayamanne

Today the Jupyter extension is planning on using the custom API getActivatedEnvironmentVariables method.
However this has a problem: If we call this API for a global python environment with a .env file in the users folder, then undefined is returned by the Python extension API.

Asks

  • Option 1: When calling getActivatedEnvironmentVariables with any python env and with a .env file in user workspace, then always return the environment variable
  • Option 2: Have a more stable API than a custom API just for Jupyter
    • Currently there is a separate API getEnvironmentVariables that seems to not take an interpreter as an argument
  • Other...

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions