Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Fix unexpected crash in kotlin lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavPurwar committed Aug 12, 2023
1 parent c48a55f commit 490fda5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ class KotlinLanguage(
)
}
}
val ktFile = kotlinEnvironment.kotlinFiles[file.absolutePath]?.kotlinFile ?: return@launch
kotlinEnvironment.analysisOf(kotlinEnvironment.kotlinFiles.map {
it.value.kotlinFile
}, kotlinEnvironment.kotlinFiles[file.absolutePath]!!.kotlinFile)
}, ktFile)

editor.post {
editor.diagnostics = container
Expand Down

0 comments on commit 490fda5

Please sign in to comment.