mirror of
https://github.com/kdnk/obsidian-automatic-linker.git
synced 2026-07-22 05:37:46 +00:00
chore: add debug logging for allFiles in Trie building
This commit is contained in:
parent
477ee36a30
commit
3a475010a0
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue