Code Completion events handling

Answered

Hi!

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'

Thanks!

 

1 comment
Comment actions Permalink

See com.intellij.codeInsight.lookup.LookupListener

0

Please sign in to leave a comment.