mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 04:48:32 +00:00
fix(core): scope fff broad scanning
This commit is contained in:
parent
49ea8a9455
commit
68260ea6c9
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
export * as FileSystemSearch from "./search"
|
||||
|
||||
import os from "os"
|
||||
import path from "path"
|
||||
import { Context, Effect, Layer, Scope } from "effect"
|
||||
import { Fff } from "#fff"
|
||||
|
|
@ -127,8 +128,8 @@ export const fffLayer = Layer.effect(
|
|||
Fff.create({
|
||||
basePath: location.directory,
|
||||
aiMode: true,
|
||||
enableFsRootScanning: true,
|
||||
enableHomeDirScanning: true,
|
||||
enableFsRootScanning: location.directory === path.parse(location.directory).root,
|
||||
enableHomeDirScanning: location.directory === os.homedir(),
|
||||
}),
|
||||
catch: (cause) => cause,
|
||||
}).pipe(Effect.orDie)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue