How to distinguish bw update and uninstalling a plugin
已回答
Hello, I want to call a function if my plugin is being uninstalled by the user and not call if it's being updated. I used beforePluginUpload in DynamicPluginListener which has a Boolean variable isUpdate. This Boolean variable is false in both update and uninstalling. isUpdate should be true if the user is updating right?
请先登录再写评论。
Hi,
It looks like a potential bug in the platform. Please create an issue on https://youtrack.jetbrains.com/issues/IDEA and provide full information like the IDE version, reproducible example, and steps to reproduce.
Hello, are you also encountering this same issue? Could you please check?
I can't provide a reproducible example and steps to reproduce. But when the user clicks on update option, then also the isUpdate variable is false.
It's an in-house plugin. Could that be the possible reason?
Hi,
I don't think the type of plugin matters. The API should work as described for all plugins. As I answered before, please report the issue to YouTrack. You can provide a minimal plugin code to reproduce the issue. It doesn't have to be your plugin code.