Synchronously unload plugin when installing update in synchronous load/unload mode (IDEA-224223)

GitOrigin-RevId: de69400bbdf8cffe575b58e8f21ba10fc73b83e4
This commit is contained in:
Dmitry Jemerov
2019-10-07 13:03:29 +00:00
committed by intellij-monorepo-bot
parent 91b6b649f0
commit c33e1fb3b6
@@ -325,6 +325,11 @@ public class MyPluginModel extends InstalledPluginsTableModel implements PluginM
if (installedPluginDescriptor == null || !DynamicPlugins.allowLoadUnloadWithoutRestart(installedPluginDescriptor)) {
allowUninstallWithoutRestart = false;
}
else if (DynamicPlugins.allowLoadUnloadSynchronously(installedPluginDescriptor)) {
if (!PluginInstaller.uninstallDynamicPlugin(installedPluginDescriptor)) {
allowUninstallWithoutRestart = false;
}
}
else {
performUninstall(installedPluginDescriptor);
}