mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IJPL-149476 fix 'com.intellij.openapi.application.ConfigImportHelperTest#skip bundled plugins'
GitOrigin-RevId: 71b3ad7faf4803f0c010adcfd0b01717fca8fa56
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1ef047a4b5
commit
a267b69dea
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user