From f4f8e844cee945c913f2cc1823829e5abe6c9851 Mon Sep 17 00:00:00 2001 From: SuYao Date: Sun, 7 Dec 2025 21:13:21 +0800 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/main/services/FileStorage.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/services/FileStorage.ts b/src/main/services/FileStorage.ts index 2b94fa1607..95bf7da7e7 100644 --- a/src/main/services/FileStorage.ts +++ b/src/main/services/FileStorage.ts @@ -2069,14 +2069,8 @@ class FileStorage { return { status: 'skipped' as const, reason: 'extension not allowed' } } } else { - // Fallback to default filter if no options provided (backward compatibility) - const lowerPath = entryData.fullPath.toLowerCase() - const isMarkdown = lowerPath.endsWith('.md') || lowerPath.endsWith('.markdown') - const isImage = imageExts.some((ext) => lowerPath.endsWith(ext)) - - if (!isMarkdown && !isImage) { - return { status: 'skipped' as const, reason: 'not markdown or image' } - } + // Fallback: allow all files if no allowedExtensions specified (consistent with line 1679) + // No filtering; all files are allowed } }