Skip to content

Commit 66a907b

Browse files
authored
Merge pull request #7280 from chezsmithy/fix-lsTool-exclusions
fix: 🐛 Fix lsTool Exclusions
2 parents 1dcca25 + f9c734f commit 66a907b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/tools/implementations/lsTool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import ignore from "ignore";
2+
13
import { ToolImpl } from ".";
24
import { walkDir } from "../../indexing/walkDir";
35
import { resolveRelativePathInDir } from "../../util/ideUtils";
@@ -27,6 +29,7 @@ export const lsToolImpl: ToolImpl = async (args, extras) => {
2729
returnRelativeUrisPaths: true,
2830
include: "both",
2931
recursive: args?.recursive ?? false,
32+
overrideDefaultIgnores: ignore(), // Show all directories including dist/, build/, etc.
3033
});
3134

3235
const lines = entries.slice(0, MAX_LS_TOOL_LINES);

0 commit comments

Comments
 (0)