We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
plugins
1 parent 2919467 commit c3de748Copy full SHA for c3de748
1 file changed
ideaSupport/src/main/scala/org/jetbrains/sbtidea/download/plugin/PluginIndexImpl.scala
@@ -115,7 +115,10 @@ class PluginIndexImpl(ideaRoot: Path) extends PluginIndex {
115
}
116
117
private def buildFromPluginsDir: Map[PluginId, (Path, PluginDescriptor)] = {
118
- val pluginDirs = Files.list(ideaRoot.resolve("plugins")).collect(Collectors.toList[Path]).asScala
+ val pluginDirs = Files.list(ideaRoot.resolve("plugins")).collect(Collectors.toList[Path]).asScala.filter { file =>
119
+ //extra filtering of unexpected extensions (e.g., some strange file plugin-classpath.txt)
120
+ file.isDir || file.toString.endsWith(".jar")
121
+ }
122
pluginDirs.flatMap { pluginDir =>
123
val pluginMetaData = extractPluginMetaData(pluginDir)
124
pluginMetaData match {
0 commit comments