220
221
return this.toFileStat(provider, resource, stat, undefined, !!resolveMetadata, (stat, siblings) => {
223
>
// lazy trie to check for recursive resolving
224
>
if (!trie) {
225
>
trie = TernarySearchTree.forUris<true>(() => !isPathCaseSensitive);
226
>
trie.set(resource, true);
227
>
if (resolveTo) {
228
trie.fill(true, resolveTo);
229
}
231
>
232
>
// check for recursive resolving
233
>
if (trie.get(stat.resource) || trie.findSuperstr(stat.resource.with({ query: null, fragment: null } /* required for https://github.com/microsoft/vscode/issues/128151 */))) {
234
>
return true;
235
>
}
236
237
// check for resolving single child folders
238
>
if (stat.isDirectory && resolveSingleChildDescendants) {
fileService.ts
239
return siblings === 1;
240
}