fix: count file-level tracked yaml and twig as indexed (#357)
This commit is contained in:
+15
-2
@@ -942,7 +942,15 @@ export class ExtractionOrchestrator {
|
||||
} else if (result.errors.some((e) => e.severity === 'error')) {
|
||||
filesErrored++;
|
||||
} else {
|
||||
filesSkipped++;
|
||||
// Files with no symbols but no errors (e.g. yaml, twig) are tracked
|
||||
// at the file level — count them as indexed so the CLI doesn't
|
||||
// misleadingly report "No files found to index".
|
||||
const lang = detectLanguage(filePath, content);
|
||||
if (lang === 'yaml' || lang === 'twig') {
|
||||
filesIndexed++;
|
||||
} else {
|
||||
filesSkipped++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1108,7 +1116,12 @@ export class ExtractionOrchestrator {
|
||||
} else if (result.errors.some((e) => e.severity === 'error')) {
|
||||
filesErrored++;
|
||||
} else {
|
||||
filesSkipped++;
|
||||
const tracked = this.queries.getFileByPath(filePath);
|
||||
if (tracked && (tracked.language === 'yaml' || tracked.language === 'twig')) {
|
||||
filesIndexed++;
|
||||
} else {
|
||||
filesSkipped++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user