diff --git a/extensions/positron-python/src/client/positron/provider.ts b/extensions/positron-python/src/client/positron/provider.ts index 1171da4eac0e..caca64981c29 100644 --- a/extensions/positron-python/src/client/positron/provider.ts +++ b/extensions/positron-python/src/client/positron/provider.ts @@ -57,15 +57,18 @@ export async function* pythonRuntimeProvider( // Recommend Python for the workspace if it contains Python-relevant files let recommendedForWorkspace = await hasFiles([ + // Code and notebook files '**/*.py', - '**/pyproject.toml', - '**/Pipfile', - '**/*requirements.txt', - '**/.python-version', - '**/.venv', '**/*.ipynb', - '**/environment.yml', - '**/.conda', + // Virtual environment folders + '.venv/**/*', + '.conda/**/*', + // Config files + 'pyproject.toml', + 'Pipfile', + '*requirements.txt', + '.python-version', + 'environment.yml', ]); traceInfo(`pythonRuntimeProvider: recommended for workspace: ${recommendedForWorkspace}`);