mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DBE-1754: associate versions with plugin id regardless of whether a plugin is bundled
ResourceVersions maps plugin ids to their versions. For bundled plugins, core plugin id was used. Core plugin class loader doesn't have bundled plugin resources on it's classpath, when running on production jars. This led to a version being updated on attempt to run startup scripts, while no resources were extracted. Further checks on whether resources should be extracted were failing.
This commit is contained in:
@@ -100,8 +100,10 @@ class ResourceVersions implements PersistentStateComponent<ResourceVersions.Stat
|
||||
return null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static String getId(@NotNull IdeaPluginDescriptor plugin) {
|
||||
return plugin.isBundled() ? PluginManagerCore.CORE_PLUGIN_ID : plugin.getPluginId().getIdString();
|
||||
PluginId pluginId = plugin.getPluginId();
|
||||
return pluginId != null ? pluginId.getIdString() : PluginManagerCore.CORE_PLUGIN_ID;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user