IJPL-149476 fix 'com.intellij.openapi.application.ConfigImportHelperTest#skip bundled plugins'

GitOrigin-RevId: 71b3ad7faf4803f0c010adcfd0b01717fca8fa56
This commit is contained in:
Vladimir Krivosheev
2024-05-13 20:42:50 +02:00
committed by intellij-monorepo-bot
parent 1ef047a4b5
commit a267b69dea

View File

@@ -571,8 +571,12 @@ internal fun CoroutineScope.loadPluginDescriptorsImpl(
result = result, result = result,
)) ))
result.addAll(loadDescriptorsFromDir(dir = customPluginDir, context = context, isBundled = false, pool = zipFilePool)) result.addAll(loadDescriptorsFromDir(dir = customPluginDir, context = context, isBundled = false, pool = zipFilePool))
bundledPluginDir?.let {
result.addAll(loadDescriptorsFromDir(dir = it, context = context, isBundled = true, pool = zipFilePool))
} }
else { return result
}
val effectiveBundledPluginDir = bundledPluginDir ?: Paths.get(PathManager.getPreInstalledPluginsPath()) val effectiveBundledPluginDir = bundledPluginDir ?: Paths.get(PathManager.getPreInstalledPluginsPath())
val data = try { val data = try {
// use only if the format is supported (first byte it is a version) // use only if the format is supported (first byte it is a version)
@@ -624,7 +628,6 @@ internal fun CoroutineScope.loadPluginDescriptorsImpl(
result = result, result = result,
) )
} }
}
return result return result
} }