mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 13:33:22 +00:00
chore: generate
This commit is contained in:
parent
20929b3081
commit
595e4c8c96
2 changed files with 6 additions and 4 deletions
|
|
@ -48,9 +48,9 @@ export const ripgrepLayer = Layer.effect(
|
|||
Effect.sync(() => {
|
||||
next.files.push(entry.path)
|
||||
const parts = entry.path.split("/")
|
||||
parts.slice(0, -1).forEach((_, offset) =>
|
||||
next.directories.add(parts.slice(0, offset + 1).join("/") + path.sep),
|
||||
)
|
||||
parts
|
||||
.slice(0, -1)
|
||||
.forEach((_, offset) => next.directories.add(parts.slice(0, offset + 1).join("/") + path.sep))
|
||||
}),
|
||||
})
|
||||
index = next
|
||||
|
|
|
|||
|
|
@ -68,7 +68,9 @@ describe("FileSystemSearch", () => {
|
|||
Location.node,
|
||||
Layer.succeed(
|
||||
Location.Service,
|
||||
Location.Service.of(location({ directory: AbsolutePath.make(path.join(os.tmpdir(), "opencode-search-atomic")) })),
|
||||
Location.Service.of(
|
||||
location({ directory: AbsolutePath.make(path.join(os.tmpdir(), "opencode-search-atomic")) }),
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue