Plugin dev - tracking code completion suggestion
已回答
Looking to make a plugin to listen to code completion. I believe for code completion events suggestions "com.intellij.codeInsight.lookup" is a best option I found so far to get if the user accepted/declined the code completion suggestions.
Is there a way to listen to chat suggestions(AI chat suggestion like copilot suggestions) and get the details if the user has accepted the suggestion or rejected them?
Very new to plugin development so any input/guidance will be helpful
Thanks!
请先登录再写评论。
There's
com.intellij.codeInsight.lookup.LookupListener
but it works only for “regular" lookup. Various AI-plugins use different mechanisms, some also resorting to “hacky” ways that won't be trackable.I see, makes sense. Thanks for the input!
When going over some open sources I found stats collector link . I believe some of the code dependencies are out of date but would it be possible to import and use it? I tried pulling it down to see if I can use it but no luck yet. Don't think it works for AI suggestions but wanted to check incase I will be able to use some parts of it.
This project seems abandoned and obsolete.