mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-28 13:14:28 +01:00
ignore: update json schema for better lsp dx (#2186)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user