Skip to content

Virtual envs in the workspace are treated as user source #5169

Description

@rchiodo

I have a workspace folder like so:

  • root
    • venv1
    • venv2
    • test.py

When opening the folder, it analyzes the files in the venv that isn't currently selected as if they were user files. I end up with a situation like so:

image

Exclude paths don't seem to fix the issue either. I tried this:

"python.analysis.exclude": ["venv1", "venv2"]

Additionally our help says all virtual environments are excluded automatically:

image

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions