How can a plugin detect when a user performs a refactoring?

I would like to write a plugin that tracks user actions in order to let that user see what they did over a programming session.The main thing I need to track is refactorings (no matter how they are executed). I only need to know about finished refactorings. I don't think I care about whether the user later undoes it. I don't want to distinguish between context actions, auto-fixes, choices on the refactoring menu, etc. They are all equivalent for me. I don't need much data about the refactoring. Name alone is more than sufficient. Location might be useful in a future version, but I don't even need that yet.What is the best / right / most supported way to get told every time the user performs any refactoring?

Please sign in to leave a comment.