Prechádzať zdrojové kódy

fix(core): skip fff in node runtime (#34353)

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local>
opencode-agent[bot] 2 mesiacov pred
rodič
commit
8f1e13f299
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      packages/core/src/filesystem/search.ts

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

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