Skip to content

Commit

Permalink
AddLivePluginAndIdeJarsAsDependencies adding all jars similar to Kotl…
Browse files Browse the repository at this point in the history
…in plugin runner, not only one level of files (which was correct in the past)
  • Loading branch information
dkandalov committed Dec 30, 2024
1 parent 1c02b39 commit be65fc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class AddLivePluginAndIdeJarsAsDependencies: AnAction(), DumbAware {
.listFiles { it.name.endsWith(".jar") }
.map { Pair("jar://${it.value}!/", CLASSES) }

val ideJars = ideJarsPath
.listFiles { it.name.endsWith(".jar") }
val ideJars = ideJarsPath.allFiles()
.filter { !it.isDirectory && (it.extension == "jar" || it.extension == "zip") }
.map { Pair("jar://${it.value}!/", CLASSES) }

addLibraryDependencyTo(project, livePluginAndIdeJarsLibrary, livePluginJars + livePluginSrc + ideJars)
Expand Down

0 comments on commit be65fc1

Please sign in to comment.