Run code after plugin is updated
Is there a way to have some code executed after a plugin has been updated? I need to cleanup some things that are leftovers from previous versions of my plugin but I don't want the user to initiate it manually, updating plugin should be enough for them. Is there any API that I can hook into?
Thanks!
Please sign in to leave a comment.
There is no special support for that. You can register an implementation of com.intellij.openapi.startup.StartupActivity which will check if cleanup is needed and perform it.
Ok, thanks