219
const match = this._matches(context.files, pattern);
220
if (match) {
221
>
this._logService.trace(`[InstructionsContextComputer] Match for ${uri} with ${match.pattern}${match.file ? ` for file ${match.file}` : ''}`);
computeAutomaticInstructions.ts
222
>
223
>
const reason = !match.file ?
224
localize('instruction.file.reason.allFiles', 'automatically attached as pattern is **') :
225
localize('instruction.file.reason.specificFile', 'automatically attached as pattern {0} matches {1}', pattern, this._labelService.getUriLabel(match.file, { relative: true }));
227
>
variables.add(toPromptFileVariableEntry(uri, PromptFileVariableKind.Instruction, reason, true));
228
>
telemetryEvent.applyingInstructionsCount++;
229
>
debugInfo.debugDetails.push({ category: 'applying', name: basename(uri).toString(), uri, reason });
230
>
if (isClaudeRules) {
231
telemetryEvent.claudeRulesCount++;
232
}