Explorar el Código

fix(formatting): check for enabled formatters (#611)

Timo Clasen hace 7 meses
padre
commit
8f4b79227c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/opencode/src/format/index.ts

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

@@ -31,7 +31,7 @@ export namespace Format {
     const result = []
     for (const item of Object.values(Formatter)) {
       if (!item.extensions.includes(ext)) continue
-      if (!isEnabled(item)) continue
+      if (!(await isEnabled(item))) continue
       result.push(item)
     }
     return result