Listening to an event when opening a commit menu

How do I listen for events when I open a menu with a commit and get CommitMessageI from there?

I tried that:

class ProjectService(project: Project) {
init {
ActionManager.getInstance().registerAction("perform-set-message", SetCommitTemplateAction())
}
}

class Listener : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project!!
val data = Refreshable.PANEL_KEY.getData(e.dataContext)

logger.info("event")
if (data is CommitMessageI) {
logger.info("Commit event")
}
}

But it doesn't work.
Logger never print messages in idea.log

1
1 comment

Sorry, but I don't understand your question.

0

Please sign in to leave a comment.