mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ignore: update json schema to show comments & commas are okay in lsp feedback
This commit is contained in:
parent
35f57768fd
commit
3872f67990
1 changed files with 9 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue