put fff behind flag
This commit is contained in:
parent
4c9abff445
commit
5863e1254c
2 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import { FSUtil } from "../fs-util"
|
|||
import { Location } from "../location"
|
||||
import { Ripgrep } from "../ripgrep"
|
||||
import { RelativePath } from "../schema"
|
||||
import { Flag } from "../flag/flag"
|
||||
|
||||
export interface Interface {
|
||||
readonly find: (input: FileSystem.FindInput) => Effect.Effect<FileSystem.Entry[]>
|
||||
|
|
@ -236,4 +237,4 @@ export const fffLayer = Layer.effect(
|
|||
}),
|
||||
)
|
||||
|
||||
export const defaultLayer = Layer.unwrap(Effect.sync(() => (Fff.available() ? fffLayer : ripgrepLayer)))
|
||||
export const defaultLayer = Layer.unwrap(Effect.sync(() => (Flag.OPENCODE_ENABLE_FFF ? fffLayer : ripgrepLayer)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue