Code Completion events handling



I'm trying to write code-completion plugin and want to collect some usage statistics like what line of code was inserted by user. For my LookupElements I can call withInsertHandler method to determine inserted suggestion, but is there a proper way to handle other contributors suggestions insert? 

I mean I want to log something like

'my contributor called, my <line of inserted code> suggestion inserted'
'my contributor called, but others <line of inserted code> suggestion inserted'



1 comment
Comment actions Permalink

See com.intellij.codeInsight.lookup.LookupListener


Please sign in to leave a comment.