Skip to content

Commit ecd2cf2

Browse files
authored
fix(core): include hidden files in ripgrep file search (anomalyco#62577)
1 parent d327a96 commit ecd2cf2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/core/src/filesystem/search.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const ripgrepLayer = Layer.effect(
6868
yield* ripgrep.find({
6969
cwd: location.directory,
7070
pattern: "*",
71+
hidden: true,
7172
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 100_000,
7273
exclude: home ? [...Protected.names()].map((name) => `${name}/**`) : undefined,
7374
onEntry: (entry) =>

‎packages/core/test/filesystem/search.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ describe("FileSystemSearch", () => {
229229
const search = yield* FileSystemSearch.Service
230230
const entries = yield* search.find({ query: "ts", type: "file" })
231231
expect(observed?.cwd).toBe(directory)
232+
expect(observed?.hidden).toBe(true)
232233
expect(entries.map((entry) => entry.path)).toEqual([RelativePath.make("remote.ts")])
233234
}).pipe(Effect.provide(layer))
234235
}),

0 commit comments

Comments
 (0)