We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2072b0 commit b1fe45aCopy full SHA for b1fe45a
1 file changed
src/features/envCommands.ts
@@ -348,15 +348,6 @@ export async function addPythonProject(
348
return;
349
}
350
351
- if (
352
- resource instanceof ProjectPackageRootTreeItem ||
353
- resource instanceof ProjectPackage ||
354
- resource instanceof ProjectEnvironment
355
- ) {
356
-
357
- await addPythonProject(undefined, wm, em, pc);
358
- }
359
360
if (resource instanceof Uri) {
361
const uri = resource as Uri;
362
const envManagerId = getDefaultEnvManagerSetting(wm, uri);
@@ -421,6 +412,9 @@ export async function addPythonProject(
421
412
422
413
await addPythonProjectSetting(edits);
423
414
return projects;
415
+ } else {
416
+ // If the context is not a Uri or ProjectItem, rerun function with undefined context
417
+ await addPythonProject(undefined, wm, em, pc);
424
418
425
419
426
420
0 commit comments