Sfoglia il codice sorgente

revert(core): skip fff in node runtime (#34549)

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
opencode-agent[bot] 1 mese fa
parent
commit
018ce34b39
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      packages/core/src/filesystem/search.ts

+ 1 - 5
packages/core/src/filesystem/search.ts

@@ -230,11 +230,7 @@ export const fffLayer = Layer.effect(
   }),
 )
 
-const isNodeRuntime = () => process.versions.bun === undefined
-
-const layer = Layer.unwrap(
-  Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF || isNodeRuntime() || !Fff.available() ? ripgrepLayer : fffLayer)),
-)
+const layer = Layer.unwrap(Effect.sync(() => (Flag.OPENCODE_DISABLE_FFF || !Fff.available() ? ripgrepLayer : fffLayer)))
 
 export const locationLayer = layer