Make command optional in lsp configuration #6907

Open
opened 2026-02-16 18:05:34 -05:00 by yindo · 0 comments
Owner

Originally created by @timfel on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

According to https://github.com/anomalyco/opencode/blob/616329ae97c975f21687f6c8c9c6d4d8018e6fd9/packages/opencode/src/config/config.ts#L992 the "command" property is not optional when configuring lsp servers. This is a bit unfortunate, because it seems in that case I won't be able to take advantage of customizing initialization options for servers that are downloaded automatically. Concretely, I would like to configure jdtls with a few initialization options that I had to set so that it works for my project. Without those options, it'll just report many spurious warnings and errors that confuse the LLM and my only other option is to disable jdtls.

Originally created by @timfel on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. According to https://github.com/anomalyco/opencode/blob/616329ae97c975f21687f6c8c9c6d4d8018e6fd9/packages/opencode/src/config/config.ts#L992 the `"command"` property is not optional when configuring lsp servers. This is a bit unfortunate, because it seems in that case I won't be able to take advantage of customizing initialization options for servers that are downloaded automatically. Concretely, I would like to configure jdtls with a few initialization options that I had to set so that it works for my project. Without those options, it'll just report many spurious warnings and errors that confuse the LLM and my only other option is to disable jdtls.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6907