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

0
正式评论

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

请先登录再写评论。