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

0
3 comments
Official comment

You can create your own CompletionStatistician, put if before everyone else (order="first" in plugin.xml) and return StatisticsInfo.EMPTY for all items.

Avatar
Permanently deleted user

Thank you Peter! Out of curiosity, what happens if multiple plugins provide order="first" CompletionStatistician implementations?

0

The result is undefined, unless they also specify some other constraints like order="first, before idOfAnotherFirstExtension"

0

Please sign in to leave a comment.