summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-17 01:36:45 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-17 01:36:45 +0000
commit5b9fa322551b77ddf2ab004c5491a82d37081b22 (patch)
tree27006cec8a5eb83b64110812cc2785bf6bdcb6ab
parentf13778215ae8927e8bb500f421f835566eb9a017 (diff)
downloadopencode-5b9fa322551b77ddf2ab004c5491a82d37081b22.tar.gz
opencode-5b9fa322551b77ddf2ab004c5491a82d37081b22.zip
chore: generate
-rw-r--r--packages/opencode/src/config/lsp.ts30
1 files changed, 14 insertions, 16 deletions
diff --git a/packages/opencode/src/config/lsp.ts b/packages/opencode/src/config/lsp.ts
index afb83908b..233f7e523 100644
--- a/packages/opencode/src/config/lsp.ts
+++ b/packages/opencode/src/config/lsp.ts
@@ -18,22 +18,20 @@ export const Entry = z.union([
}),
])
-export const Info = z
- .union([z.literal(false), z.record(z.string(), Entry)])
- .refine(
- (data) => {
- if (typeof data === "boolean") return true
- const serverIds = new Set(Object.values(LSPServer).map((server) => server.id))
+export const Info = z.union([z.literal(false), z.record(z.string(), Entry)]).refine(
+ (data) => {
+ if (typeof data === "boolean") return true
+ const serverIds = new Set(Object.values(LSPServer).map((server) => server.id))
- return Object.entries(data).every(([id, config]) => {
- if (config.disabled) return true
- if (serverIds.has(id)) return true
- return Boolean(config.extensions)
- })
- },
- {
- error: "For custom LSP servers, 'extensions' array is required.",
- },
- )
+ return Object.entries(data).every(([id, config]) => {
+ if (config.disabled) return true
+ if (serverIds.has(id)) return true
+ return Boolean(config.extensions)
+ })
+ },
+ {
+ error: "For custom LSP servers, 'extensions' array is required.",
+ },
+)
export type Info = z.infer<typeof Info>