605
const uri = refsToCheck[i].resource;
606
if (stat.success && stat.stat?.isFile) {
608
// only recursively parse instruction files
609
todo.push(uri);
610
}
612
>
attachedContext.add(toPromptFileVariableEntry(uri, PromptFileVariableKind.InstructionReference, reason, true));
613
>
telemetryEvent.referencedInstructionsCount++;
614
>
debugInfo.debugDetails.push({ category: 'referenced', name: basename(uri).toString(), uri, reason });
615
>
this._logService.trace(`[InstructionsContextComputer] ${uri.toString()} added, referenced by ${next.toString()}`);
616
>
}
617
}
618
}