fix(core): include hidden files in ripgrep file search (#62577)

This commit is contained in:
Dan Smolsky
2026-11-16 21:55:01 -05:00
committed by GitHub
Unverified
parent d327a9662b
commit ecd2cf2f6f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -68,6 +68,7 @@ const ripgrepLayer = Layer.effect(
yield* ripgrep.find({
cwd: location.directory,
pattern: "*",
hidden: true,
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 100_000,
exclude: home ? [...Protected.names()].map((name) => `${name}/**`) : undefined,
onEntry: (entry) =>
@@ -229,6 +229,7 @@ describe("FileSystemSearch", () => {
const search = yield* FileSystemSearch.Service
const entries = yield* search.find({ query: "ts", type: "file" })
expect(observed?.cwd).toBe(directory)
expect(observed?.hidden).toBe(true)
expect(entries.map((entry) => entry.path)).toEqual([RelativePath.make("remote.ts")])
}).pipe(Effect.provide(layer))
}),