chore: add debug logging for allFiles in Trie building

This commit is contained in:
Kodai Nakamura 2025-12-04 22:33:52 +09:00
parent 477ee36a30
commit 3a475010a0

View file

@ -269,6 +269,13 @@ export default class AutomaticLinkerPlugin extends Plugin {
// Sort filenames in descending order (longer paths first)
allFiles.sort((a, b) => b.path.length - a.path.length);
if (this.settings.debug) {
console.log(
"Automatic Linker: allFiles for Trie building: ",
allFiles,
);
}
// Build candidateMap and Trie using the helper function.
const { candidateMap, trie } = buildCandidateTrie(
allFiles,