Skip to content

Commit dc7a462

Browse files
authored
Fix for add project not working when a project is selected (#68)
Fixes #44
1 parent 89cf5cc commit dc7a462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/envCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export async function addPythonProject(
358358
return pw;
359359
}
360360

361-
if (resource === undefined) {
361+
if (resource === undefined || resource instanceof ProjectItem) {
362362
const creator: PythonProjectCreator | undefined = await pickCreator(pc.getProjectCreators());
363363
if (!creator) {
364364
return;

0 commit comments

Comments
 (0)