Skip to content

Commit c9d7915

Browse files
darthorimarintellij-monorepo-bot
authored andcommitted
[lsp] stop application after the main thread finishes
IntelliJ internals can run many their own threads, so to make the app exit, we kill them Those problems should be investigated, but for now it fixes the hanging application LSP-166 GitOrigin-RevId: d77781f20114dabaead546b7a1fc68beff3a5804
1 parent a8d4d66 commit c9d7915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kotlin-lsp/src/com/jetbrains/ls/kotlinLsp/KotlinLspServer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ import org.jetbrains.kotlin.idea.compiler.configuration.KotlinPluginLayoutModePr
3232
import org.jetbrains.kotlin.idea.compiler.configuration.isRunningFromSources
3333
import kotlin.io.path.absolutePathString
3434
import kotlin.io.path.createTempDirectory
35+
import kotlin.system.exitProcess
3536

3637
fun main(args: Array<String>) {
3738
RunKotlinLspCommand().main(args)
39+
exitProcess(0)
3840
}
3941

4042
private class RunKotlinLspCommand : CliktCommand(name = "kotlin-lsp") {

0 commit comments

Comments
 (0)