File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
server/src/main/kotlin/org/javacs/kt/compiler Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[versions ]
2- kotlinVersion = " 1.9.20 "
2+ kotlinVersion = " 2.0.0 "
33lsp4jVersion = " 0.21.2"
44exposedVersion = " 0.37.3"
55jmhVersion = " 1.20"
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments