Skip to content

Commit a93d2bc

Browse files
authored
bug fixes autoFindProjects (#405)
fixes #398
1 parent 6170c64 commit a93d2bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/creators/autoFindProjects.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ export class AutoFindProjects implements PythonProjectCreator {
5454
public readonly displayName = ProjectCreatorString.autoFindProjects;
5555
public readonly description = ProjectCreatorString.autoFindProjectsDescription;
5656

57+
supportsQuickCreate = true;
58+
5759
constructor(private readonly pm: PythonProjectManager) {}
5860

5961
async create(_options?: PythonProjectCreatorOptions): Promise<PythonProject | PythonProject[] | undefined> {
60-
const files = await findFiles('**/{pyproject.toml,setup.py}');
62+
const files = await findFiles('**/{pyproject.toml,setup.py}', '**/.venv/**');
6163
if (!files || files.length === 0) {
6264
setImmediate(() => {
6365
showErrorMessage('No projects found');

0 commit comments

Comments
 (0)