Skip to content

Commit 26c88ed

Browse files
committed
feat: to kotlin 2.0.0
1 parent 1fd3dc4 commit 26c88ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlinVersion = "1.9.20"
2+
kotlinVersion = "2.0.0"
33
lsp4jVersion = "0.21.2"
44
exposedVersion = "0.37.3"
55
jmhVersion = "1.20"

server/src/main/kotlin/org/javacs/kt/compiler/Compiler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private class CompilationEnvironment(
9999

100100
init {
101101
environment = KotlinCoreEnvironment.createForProduction(
102-
parentDisposable = disposable,
102+
projectDisposable = disposable,
103103
// Not to be confused with the CompilerConfiguration in the language server Configuration
104104
configuration = KotlinCompilerConfiguration().apply {
105105
val langFeatures = mutableMapOf<LanguageFeature, LanguageFeature.State>()
@@ -423,7 +423,7 @@ private class CompilationEnvironment(
423423
}
424424

425425
fun createContainer(sourcePath: Collection<KtFile>): Pair<ComponentProvider, BindingTraceContext> {
426-
val trace = CliBindingTrace()
426+
val trace = CliBindingTrace(environment.project)
427427
val container = TopDownAnalyzerFacadeForJVM.createContainer(
428428
project = environment.project,
429429
files = sourcePath,

0 commit comments

Comments
 (0)