[dev] show precise parent classloaders in the plugin descriptors dump

The 'getAllParentsClassLoaders' returns the list which is actually used why loading classes, so it's more correct than taking classloaders from the '_getParents' method. Also, the latter often showed many duplicating entries making it harder to read the dump.

GitOrigin-RevId: 9526a7e5d7b327f03ce0f122c75ff7e1e14a3017
This commit is contained in:
Nikolay Chashnikov
2025-03-18 21:11:52 +00:00
committed by intellij-monorepo-bot
parent 6de6d157af
commit 6228ac9b2a
@@ -162,9 +162,7 @@ private class DumpPluginDescriptorsAction : DumbAwareAction() {
if (printedClassLoaders.add(classLoader)) {
@Suppress("TestOnlyProblems")
val parents = when (classLoader) {
is PluginClassLoader -> classLoader._getParents().map { it.classLoader }.ifEmpty {
listOf(ClassLoaderConfigurator::class.java.classLoader)
}
is PluginClassLoader -> classLoader.getAllParentsClassLoaders().toList()
else -> listOf(classLoader.parent)
}
writeArrayFieldStart("parents")