Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@nfarahmand

Description

@nfarahmand
Issue body actions

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.

idreyn, zlavergne, KalleDK, woile, reidmeyer and 5 more

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.