File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
adapter/src/main/kotlin/org/javacs/ktda/classpath Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org.javacs.ktda.classpath
2
2
3
3
import java.util.logging.Level
4
+ import org.javacs.kt.SourceExclusions
4
5
import org.javacs.ktda.LOG
5
6
import org.javacs.ktda.util.winCompatiblePathOf
6
7
import org.javacs.ktda.util.tryResolving
@@ -61,10 +62,10 @@ private fun backupClassPath() =
61
62
listOfNotNull(findKotlinStdlib()).toSet()
62
63
63
64
private fun projectFiles (workspaceRoot : Path ): Set <Path > {
64
- val exclusions = setOf ( " bin " , " build " ) // TODO: Use SourceExclusions from kotlin-language-server's shared module
65
+ val exclusions = SourceExclusions (workspaceRoot)
65
66
return workspaceRoot.toFile()
66
67
.walk()
67
- .onEnter { it.name !in exclusions }
68
+ .onEnter { exclusions.isIncluded( it.toPath()) }
68
69
.map { it.toPath() }
69
70
.filter { isMavenBuildFile(it) || isGradleBuildFile(it) }
70
71
.toSet()
You can’t perform that action at this time.
0 commit comments