Disabling default recently applied suggestions
已回答
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
请先登录再写评论。
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"