chore: generate
This commit is contained in:
@@ -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")) }),
|
||||
),
|
||||
),
|
||||
],
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user