From 3a475010a083a0dcb9ebf3a72f8b2b73ae3ff224 Mon Sep 17 00:00:00 2001 From: Kodai Nakamura Date: Thu, 4 Dec 2025 22:33:52 +0900 Subject: [PATCH] chore: add debug logging for allFiles in Trie building --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.ts b/src/main.ts index 084b648..d80db78 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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,