提交 4d1cc410 编写于 作者: J Joao Moreno

fixes #33498

上级 74b19649
...@@ -76,9 +76,9 @@ export class Model { ...@@ -76,9 +76,9 @@ export class Model {
const root = folder.uri.fsPath; const root = folder.uri.fsPath;
const children = await new Promise<string[]>((c, e) => fs.readdir(root, (err, r) => err ? e(err) : c(r))); const children = await new Promise<string[]>((c, e) => fs.readdir(root, (err, r) => err ? e(err) : c(r)));
for (const child of children) { children
this.tryOpenRepository(path.join(root, child)); .filter(child => child !== '.git')
} .forEach(child => this.tryOpenRepository(path.join(root, child)));
} }
} }
...@@ -156,7 +156,7 @@ export class Model { ...@@ -156,7 +156,7 @@ export class Model {
return; return;
} }
console.error('Failed to find repository:', err); // console.error('Failed to find repository:', err);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册