From 4d68ee5d2c5e288e061ed8db9248f53c34cb791e Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 14 Oct 2025 02:55:18 +0200 Subject: [PATCH] fix: clang formatter name (#3042) Co-authored-by: pancake Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> --- packages/opencode/src/format/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/format/index.ts b/packages/opencode/src/format/index.ts index 6cbafaef..19790c43 100644 --- a/packages/opencode/src/format/index.ts +++ b/packages/opencode/src/format/index.ts @@ -15,7 +15,10 @@ export namespace Format { const enabled: Record = {} const cfg = await Config.get() - const formatters = { ...Formatter } as Record + const formatters: Record = {} + for (const item of Object.values(Formatter)) { + formatters[item.name] = item + } for (const [name, item] of Object.entries(cfg.formatter ?? {})) { if (item.disabled) { delete formatters[name]