mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-27 07:38:51 +00:00
fix(core): include hidden files in ripgrep file search (#62577)
This commit is contained in:
parent
d327a9662b
commit
ecd2cf2f6f
2 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue