summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-22 17:59:18 -0500
committerGitHub <[email protected]>2025-08-22 17:59:18 -0500
commit004f53f7410dd715737b6bd885a0a2a277dec397 (patch)
treee5559d1046f5712122a00a4228a54d274c06e9e9 /packages
parentcf29ec0a595c3938214c154d5e911aa8a4344b8d (diff)
downloadopencode-004f53f7410dd715737b6bd885a0a2a277dec397.tar.gz
opencode-004f53f7410dd715737b6bd885a0a2a277dec397.zip
ignore: update json schema for better lsp dx (#2186)
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/opencode/script/schema.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/opencode/script/schema.ts b/packages/opencode/script/schema.ts
index c815c7324..27450fd34 100755
--- a/packages/opencode/script/schema.ts
+++ b/packages/opencode/script/schema.ts
@@ -32,5 +32,13 @@ const result = zodToJsonSchema(Config.Info, {
return jsonSchema
},
-})
+}) as Record<string, unknown> & {
+ allowComments?: boolean
+ allowTrailingCommas?: boolean
+}
+
+// used for json lsps since config supports jsonc
+result.allowComments = true
+result.allowTrailingCommas = true
+
await Bun.write(file, JSON.stringify(result, null, 2))