Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit e82d4b5

Browse files
authored
Add fix to support project root item in project getter (#298)
1 parent de653f9 commit e82d4b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/features/envCommands.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ export async function addPythonProject(
348348
return;
349349
}
350350

351+
if (resource instanceof ProjectPackageRootTreeItem || resource instanceof ProjectPackage) {
352+
await addPythonProject(undefined, wm, em, pc);
353+
}
354+
351355
if (resource instanceof Uri) {
352356
const uri = resource as Uri;
353357
const envManagerId = getDefaultEnvManagerSetting(wm, uri);

0 commit comments

Comments
 (0)