Procházet zdrojové kódy

await config hooks

Dax Raad před 7 měsíci
rodič
revize
d686269377
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/opencode/src/plugin/index.ts

+ 1 - 1
packages/opencode/src/plugin/index.ts

@@ -72,7 +72,7 @@ export namespace Plugin {
     const hooks = await state().then((x) => x.hooks)
     const config = await Config.get()
     for (const hook of hooks) {
-      hook.config?.(config)
+      await hook.config?.(config)
     }
     Bus.subscribeAll(async (input) => {
       const hooks = await state().then((x) => x.hooks)