Skip to content

Make auto-loading .env files optional with a setting to turn it off #23575

@nfarahmand

Description

@nfarahmand

The Python extension looks for and loads the .env file within a workspace, which loads those variables into the environment for tests and the integrated terminal. This feature should be made optional with a setting to turn it off. The .env file in a workspace often is not the settings someone would like to use when running unit tests, so tests will fail with those settings. Without a way to turn it off, I have to either comment out the .env file before running unit tests, or go to another terminal outside of VS Code to run my tests.

Please make the auto-loading of .env files in a workspace optional with a setting to turn it off.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions