opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: Add kotlin lsp integration

Open tjg184 opened this issue 2 weeks ago • 1 comments

This pull request adds support for the Kotlin language server to the OpenCode LSP infrastructure. The main changes include updating language extension mappings and introducing logic to automatically download, install, and launch the Kotlin Language Server when needed.

Kotlin Language Server Integration

  • Added .kt and .kts file extensions to the LANGUAGE_EXTENSIONS mapping, associating them with the Kotlin language.
  • Introduced the KotlinLS entry in LSPServer, which detects the project root, checks for a local server installation, and downloads/releases the latest Kotlin Language Server from GitHub if not present. The implementation also handles platform and architecture compatibility, extraction, and launching of the server process.

tjg184 avatar Jan 01 '26 21:01 tjg184