1023
// excluding only exact-case README.md.
1024
for (const child of children) {
1026
>
1027
>
if (child.isFile) {
1028
>
const filename = child.name;
1029
>
if (filename.endsWith(MARKDOWN_SUFFIX) && filename !== README_FILENAME && !seen.has(child.resource)) {
1030
>
seen.add(child.resource);
1031
>
files.push({ uri: child.resource, etag: child.etag });
1032
>
}
1033
>
}
1034
>
}
1035
result.push({ uri: rootUri, type: root.type, files: files.sort(compareDiscoveredFile), name: root.name, writable: true });
1036