fwcd / kotlin-language-server

Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
MIT License
1.68k stars 212 forks source link

Supper non-JVM backends (Kotlin/Native, Kotlin/JS, Kotlin/Wasm) #11

Open fwcd opened 6 years ago

fwcd commented 6 years ago

Support non-JVM backends, such as...

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.

fwcd commented 5 years ago

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

fwcd commented 1 year ago

The upcoming Wasm support in kotlin-compiler-server might be interesting: