瀏覽代碼

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