[PR #5230] add ocaml lsp support #11301

Closed
opened 2026-02-16 18:16:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5230

State: closed
Merged: Yes


Adds OCaml LSP (ocamllsp) as a built-in LSP server for OCaml development.

Changes:

  • Added Ocaml LSP server definition in packages/opencode/src/lsp/server.ts
  • Added OCaml language ID mappings (.ml, .mli) in packages/opencode/src/lsp/language.ts
  • Updated LSP documentation

I didn't add auto-install support because OCaml LSP must be compiled with the same OCaml compiler version as the project being developed. Auto-installing it could result in version mismatches.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5230 **State:** closed **Merged:** Yes --- Adds OCaml LSP (`ocamllsp`) as a built-in LSP server for OCaml development. Changes: - Added `Ocaml` LSP server definition in `packages/opencode/src/lsp/server.ts` - Added OCaml language ID mappings (`.ml`, `.mli`) in `packages/opencode/src/lsp/language.ts` - Updated LSP documentation I didn't add auto-install support because OCaml LSP must be compiled with the same OCaml compiler version as the project being developed. Auto-installing it could result in version mismatches.
yindo added the pull-request label 2026-02-16 18:16:07 -05:00
yindo closed this issue 2026-02-16 18:16:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11301