Disabling default recently applied suggestions
Answered
Hello!
IntelliJ seems to keep a cache (maybe 5 most recent) of recently accepted suggestions which are surfaced in future code completion requests. I would like in my plugin to disable this behavior to test the impact of different ranking strategies. Is this possible for plugins?
Thanks!
Ari
Please sign in to leave a comment.
You can create your own CompletionStatistician, put if before everyone else (order="first" in plugin.xml) and return StatisticsInfo.EMPTY for all items.
Thank you Peter! Out of curiosity, what happens if multiple plugins provide order="first" CompletionStatistician implementations?
The result is undefined, unless they also specify some other constraints like order="first, before idOfAnotherFirstExtension"