feat(lsp): add Kotlin Language Server support#7
Merged
Conversation
Add support for JetBrains Kotlin LSP with auto-download capabilities: - Platform detection for win-x64, linux-x64, linux-arm64, osx-x64, osx-arm64 - Auto-download JetBrains Kotlin LSP (v0.253.10629) - Auto-download bundled JRE 21 from vscode-java releases - Root detection via Gradle (build.gradle.kts, build.gradle) and Maven (pom.xml) - Support for .kt and .kts file extensions - Exported KotlinServer from index.ts - Added comprehensive tests for KotlinServer Closes #6
10 tasks
- Add Kotlin LSP to README supported languages table - Create CLAUDE.md for packages/lsp with architecture overview
Error handling improvements:
- Replace empty .catch(() => {}) with proper error logging
- Add specific ENOENT checks instead of broad catch blocks
- Add try-catch around spawn() with error/exit event listeners
- Add user guidance message for dependency setup failures
- Add error context to verification failure messages
Documentation fixes:
- Fix misleading extractZip comment (system unzip, not Bun native)
- Update CLAUDE.md with accurate extension lists for all servers
- Add missing root detection files (go.sum, pyrightconfig.json, etc.)
- Update auto-download pattern example to match implementation
Test improvements:
- Add .kts extension test for getServersForExtension
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
packages/lsp/src/server.ts: Added KotlinServer with auto-download logicpackages/lsp/src/index.ts: Exported KotlinServerpackages/lsp/src/__tests__/server.test.ts: Added KotlinServer testsCLAUDE.md: Updated documentationTest Plan
References
Closes #6