fix(core): disable fff broad scanning
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
export * as FileSystemSearch from "./search"
|
export * as FileSystemSearch from "./search"
|
||||||
|
|
||||||
import os from "os"
|
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { Context, Effect, Layer, Scope } from "effect"
|
import { Context, Effect, Layer, Scope } from "effect"
|
||||||
import { Fff } from "#fff"
|
import { Fff } from "#fff"
|
||||||
@@ -128,8 +127,6 @@ export const fffLayer = Layer.effect(
|
|||||||
Fff.create({
|
Fff.create({
|
||||||
basePath: location.directory,
|
basePath: location.directory,
|
||||||
aiMode: true,
|
aiMode: true,
|
||||||
enableFsRootScanning: location.directory === path.parse(location.directory).root,
|
|
||||||
enableHomeDirScanning: location.directory === os.homedir(),
|
|
||||||
}),
|
}),
|
||||||
catch: (cause) => cause,
|
catch: (cause) => cause,
|
||||||
}).pipe(Effect.orDie)
|
}).pipe(Effect.orDie)
|
||||||
|
|||||||
Reference in New Issue
Block a user