Skip to content

Conversation

eleanorjboyd
Copy link
Member

@eleanorjboyd eleanorjboyd commented May 13, 2025

fixes #398

@eleanorjboyd eleanorjboyd added this to the May 2025 milestone May 13, 2025
@eleanorjboyd eleanorjboyd requested a review from karthiknadig May 13, 2025 20:04
@eleanorjboyd eleanorjboyd self-assigned this May 13, 2025
@eleanorjboyd eleanorjboyd added the bug Issue identified by VS Code Team member as probable bug label May 13, 2025
Copy link

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@eleanorjboyd eleanorjboyd changed the title stop autoFindProjects from finding in .venv bug fixes autoFindProjects May 13, 2025
constructor(private readonly pm: PythonProjectManager) {}

async create(_options?: PythonProjectCreatorOptions): Promise<PythonProject | PythonProject[] | undefined> {
const files = await findFiles('**/{pyproject.toml,setup.py}');
const files = await findFiles('**/{pyproject.toml,setup.py}', '**/.venv/**');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we need to use the Prefix path for the environment. This is not always good enough. I think for now .venv is ok, but really we should use the sysPrefix path for environment for the workspace and ignore all pyproject.toml or setup.py from there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created #410

@eleanorjboyd eleanorjboyd merged commit a93d2bc into microsoft:main May 14, 2025
6 checks passed
@eleanorjboyd eleanorjboyd deleted the remove-venv-autofind branch May 14, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Fixes: New Project: Auto-Find
2 participants