We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a954497 commit cdd5cb5Copy full SHA for cdd5cb5
1 file changed
src/features/creators/autoFindProjects.ts
@@ -70,10 +70,13 @@ export class AutoFindProjects implements PythonProjectCreator {
70
const filtered = files.filter((uri) => {
71
const p = this.pm.get(uri);
72
if (p) {
73
- // Skip this project if there's already a project registered with exactly the same path
+ // 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
76
const np = path.normalize(p.uri.fsPath);
77
const nf = path.normalize(uri.fsPath);
- return np !== nf;
78
+ const nfp = path.dirname(nf);
79
+ return np !== nf && np !== nfp;
80
}
81
return true;
82
});
0 commit comments