فهرست منبع

fix: typeerror case

Aiden Cline 4 ماه پیش
والد
کامیت
1fc6c6fb2a
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      packages/opencode/src/format/index.ts

+ 3 - 0
packages/opencode/src/format/index.ts

@@ -41,6 +41,9 @@ export namespace Format {
         extensions: [],
         ...item,
       })
+
+      if (result.command.length === 0) continue
+
       result.enabled = async () => true
       result.name = name
       formatters[name] = result