未验证 提交 90e06350 编写于 作者: B Benjamin Pasero 提交者: GitHub

fix #73472 (#73473)

上级 6f6b434c
......@@ -80,16 +80,14 @@ export class DiskFileSystemProvider extends Disposable implements IFileSystemPro
const children = await readdir(this.toFilePath(resource));
const result: [string, FileType][] = [];
for (let i = 0; i < children.length; i++) {
const child = children[i];
await Promise.all(children.map(async child => {
try {
const stat = await this.stat(joinPath(resource, child));
result.push([child, stat.type]);
} catch (error) {
this.logService.trace(error); // ignore errors for individual entries that can arise from permission denied
}
}
}));
return result;
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册