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

fix #73472 (#73473)

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