We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f296e30 + faf6e73 commit 04e68ebCopy full SHA for 04e68eb
src/tools/search-codebase.ts
@@ -369,7 +369,9 @@ export async function handle(
369
const candidates = new Map<string, ImpactCandidate>();
370
371
const addCandidate = (file: string, hop: 1 | 2, line?: number): void => {
372
- if (Array.from(targetSet).some((t) => pathsMatch(t, file))) return;
+ for (const t of targetSet) {
373
+ if (pathsMatch(t, file)) return;
374
+ }
375
376
const existing = candidates.get(file);
377
if (existing) {
0 commit comments