Преглед на файлове

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

Timo Clasen преди 1 година
родител
ревизия
8f4b79227c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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