Skip to content

Commit

Permalink
recursively include all jars from IDE lib folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dkandalov committed Sep 6, 2024
1 parent 6ca9fdd commit b8e2b58
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,13 @@ private class KotlinPluginCompiler {
}

fun ideLibFiles() = ideJarsPath
.listFiles {
.allFiles()
.filter {
// Filter because Kotlin compiler complains about non-zip files.
it.isDirectory || it.extension == "jar" || it.extension == "zip"
!it.isDirectory && (it.extension == "jar" || it.extension == "zip")
}
.map { it.toFile() }
.toList()

fun dependenciesOnOtherPluginsForHighlighting(scriptText: List<String>): List<File> =
findPluginDescriptorsOfDependencies(scriptText, kotlinDependsOnPluginKeyword)
Expand Down

0 comments on commit b8e2b58

Please sign in to comment.