From 0ee658aa9573110c6880300110642c26b73a5fe1 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 22 Aug 2020 19:08:45 -0600 Subject: [PATCH] WIP: Kotlin LSP --- backend/src/langs.ts | 3 +++ scripts/docker-install-phase4.bash | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 385fcc6..779352a 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -1341,6 +1341,9 @@ PLEASE GIVE UP repl: `JAVA_OPTS="-Duser.home=$PWD" kotlinc`, main: "main.kts", run: `JAVA_OPTS="-Duser.home=$PWD" kotlinc -script main.kts; kotlinc`, + lsp: { + start: "kotlin-language-server", + }, template: `println("Hello, world!") `, timeout: 30, diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index bfed8f2..09d90c9 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -174,6 +174,11 @@ ln -s /opt/kotlin/bin/* /usr/local/bin/ ln -s /opt/kotlin/lib/* /usr/local/lib/ rm kotlin-*.zip +wget -nv https://github.com/fwcd/kotlin-language-server/releases/download/0.6.0/server.zip +unzip server.zip +mv server /opt/kotlin-language-server +ln -s /opt/kotlin-language-server/bin/kotlin-language-server /usr/local/bin/ + # Lua ver="$(latest_release EmmyLua/EmmyLua-LanguageServer)" wget -nv "https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download/${ver}/EmmyLua-LS-all.jar"