828
const stat = await this.fileService.resolve(uri);
829
if (stat.isDirectory && stat.children) {
831
>
for (const child of stat.children) {
832
>
try {
833
>
if (token.isCancellationRequested) {
834
return [];
835
}
837
>
const skillFile = joinPath(child.resource, SKILL_FILENAME);
838
>
const skillStat = await this.fileService.resolve(skillFile);
839
>
if (skillStat.isFile) {
840
>
result.push(skillStat.resource);
841
>
}
842
>
}
843
>
} catch (error) {
844
// Ignore errors for individual files/folders (e.g., permission denied)
845
}
847
>
}
848
>
return result;
849
} catch (e) {
850
if (!isCancellationError(e)) {