580
for (const variable of attachedContext.asArray()) {
581
if (isPromptFileVariableEntry(variable)) {
583
>
todo.push(variable.value);
584
>
seen.add(variable.value);
585
>
}
586
>
}
587
}
588
let next = todo.pop();
589
while (next) {
591
>
if (result && result.body) {
592
>
const refsToCheck: { resource: URI }[] = [];
593
>
for (const ref of result.body.fileReferences) {
594
const url = result.body.resolveFilePath(ref.content);
595
if (url && !seen.has(url) && (isPromptOrInstructionsFile(url) || this._workspaceService.getWorkspaceFolder(url) !== undefined)) {