Skip to content

Commit cdd5cb5

Browse files
committed
revert to skip projects with same parent
1 parent a954497 commit cdd5cb5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/features/creators/autoFindProjects.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ export class AutoFindProjects implements PythonProjectCreator {
7070
const filtered = files.filter((uri) => {
7171
const p = this.pm.get(uri);
7272
if (p) {
73-
// Skip this project if there's already a project registered with exactly the same path
73+
// Skip this project if:
74+
// 1. There's already a project registered with exactly the same path
75+
// 2. There's already a project registered with this project's parent directory path
7476
const np = path.normalize(p.uri.fsPath);
7577
const nf = path.normalize(uri.fsPath);
76-
return np !== nf;
78+
const nfp = path.dirname(nf);
79+
return np !== nf && np !== nfp;
7780
}
7881
return true;
7982
});

0 commit comments

Comments
 (0)