kotlin-language-server
kotlin-language-server copied to clipboard
Supper non-JVM backends (Kotlin/Native, Kotlin/JS, Kotlin/Wasm)
Support non-JVM backends, such as...
- [ ] Kotlin/Native: https://kotlinlang.org/docs/native-overview.html
- [ ] Kotlin/JS: https://kotlinlang.org/docs/js-overview.html
- [ ] Kotlin/Wasm: https://kotlinlang.org/docs/wasm-overview.html
The native backend might be particularly interesting for iOS/Android apps using Compose Multiplatform, while the JS/Wasm support would be cool for using Kotlin in (web) frontend projects.
The kotlin-compiler-server used by the kotlin-playground (hosted on https://play.kotlinlang.org), provides a nice reference implementation for JS and Wasm and would be worth studying.
Since the language server itself (mostly) just depends on the compiler frontend, integrating dependency resolution would be the central challenge.
The Kotlin Web Demo might be a good resource for Kotlin JS support:
https://github.com/JetBrains/kotlin-web-demo/tree/master/versions/1.2.71/src/main/java/org/jetbrains/webdemo/kotlin/impl
The upcoming Wasm support in kotlin-compiler-server might be interesting:
- https://github.com/JetBrains/kotlin-compiler-server/commit/2d87c39775f0c66e7a025f63cff29006089980f8
- https://github.com/JetBrains/kotlin-compiler-server/pull/681