Skip to content

Commit 8f4b792

Browse files
authored
fix(formatting): check for enabled formatters (anomalyco#611)
1 parent c810b6d commit 8f4b792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/format/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export namespace Format {
3131
const result = []
3232
for (const item of Object.values(Formatter)) {
3333
if (!item.extensions.includes(ext)) continue
34-
if (!isEnabled(item)) continue
34+
if (!(await isEnabled(item))) continue
3535
result.push(item)
3636
}
3737
return result

0 commit comments

Comments
 (0)