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!

1

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.

0
Avatar
Permanently deleted user

Ok, thanks

0

请先登录再写评论。