From 1938c145db242fb3654e0e6f8cb8c1ddcf7ccbe8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 13 Sep 2025 22:13:36 -0500 Subject: [PATCH] TextEditorViewTool: don't use default gitignore list --- src/lib/tools/TextEditorViewTool.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib/tools/TextEditorViewTool.ts b/src/lib/tools/TextEditorViewTool.ts index af5386de..1e80a43d 100644 --- a/src/lib/tools/TextEditorViewTool.ts +++ b/src/lib/tools/TextEditorViewTool.ts @@ -166,22 +166,12 @@ export class TextEditorViewTool implements Tool { // Always ignore .git directory ig.add(".git"); - // Default ignore patterns if no .gitignore is found - const defaultIgnorePatterns = [ - "node_modules", - "dist", - "build", - ".next", - ".tmp", - ]; - try { // Try to read .gitignore file const gitignoreContent = await this.fs.readFile(".gitignore", "utf8"); ig.add(gitignoreContent); } catch { - // If there's an error reading .gitignore, fall back to defaults - ig.add(defaultIgnorePatterns); + // If there's an error reading .gitignore, just proceed without it } return (path: string) => !ig.ignores(path);