File tree 3 files changed +10
-3
lines changed
src/main/kotlin/org/javacs/ktda/classpath
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ dependencies {
23
23
implementation(" org.eclipse.lsp4j:org.eclipse.lsp4j.debug:0.15.0" )
24
24
implementation(" org.jetbrains.kotlin:kotlin-stdlib" )
25
25
implementation(" org.jetbrains.kotlin:kotlin-reflect" )
26
- implementation(" kotlin-language-server:shared" )
26
+ implementation(" kotlin-language-server:shared" ) {
27
+ version {
28
+ branch = " main"
29
+ }
30
+ }
27
31
28
32
// modules temporarily needed because of shared module import above
29
33
implementation(" org.jetbrains.exposed:exposed-core:0.37.3" )
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ package org.javacs.ktda.classpath
2
2
3
3
import org.javacs.kt.classpath.ClassPathResolver
4
4
import org.javacs.kt.classpath.defaultClassPathResolver
5
+ import org.javacs.kt.classpath.ResolverOptions
5
6
import org.javacs.kt.classpath.plus
6
7
import org.javacs.kt.classpath.joined
7
8
import java.nio.file.Path
8
9
10
+ val options = ResolverOptions (useCompileClasspath = false )
11
+
9
12
fun debugClassPathResolver (workspaceRoots : Collection <Path >): ClassPathResolver =
10
- defaultClassPathResolver(workspaceRoots) + workspaceRoots.map { ProjectClassesResolver (it) }.joined
13
+ defaultClassPathResolver(workspaceRoots, resolverOptions = options ) + workspaceRoots.map { ProjectClassesResolver (it) }.joined
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pluginManagement {
15
15
}
16
16
17
17
sourceControl {
18
- gitRepository(java.net.URI .create(" https://github.com/fwcd /kotlin-language-server.git" )) {
18
+ gitRepository(java.net.URI .create(" https://github.com/maksimr /kotlin-language-server.git" )) {
19
19
producesModule(" kotlin-language-server:shared" )
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments