Listening for whenever a quick fix is applied?

Answered

I am interested in my plugin in being notified whenever a user applies a quick fix. Sort of similar to how the LookupListener interface allows me to hook into users' code completion acceptances. How can this be done?

4 comments
Comment actions Permalink
Official comment

There's no easy API for that. Why do you need this?

Comment actions Permalink

Hi Peter,

Thanks for your quick response. What I'm really trying to do is to understand the conditional probability p(x|y) that a user applies some quick fix x when an error y is present. That will help my team prioritize our work, understand the impact, refine the message prompts, etc.

Is there a not-so-easy API? I'm happy to jump through a few hoops to enable this!

Thanks,
Ari

0
Comment actions Permalink

If the quick fixes are under your control, the easiest solution would be to include the tracking into their code.

0
Comment actions Permalink

Great, I will give that a shot. Thanks again!

0

Please sign in to leave a comment.