mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
fix(formatting): check for enabled formatters (#611)
This commit is contained in:
parent
c810b6d206
commit
8f4b79227c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue