How to configure "Too many usages" search limit in intellij?

Answered

The "Too many usages" dialog for me appears consistently for the thousand-and-first usage. I'd like to increase this number, as I suspect it is impacting my ability to perform refactoring operations.

When performing a refactoring operation (e.g. Use Interface Where Possible) the UI seems to indicate that it is searching for usages of the concrete class.

After a short while, it simply stops without any result. No refactoring is performed - no preview is shown.

I am left at the "Use Interface Where Possible" dialog for selecting the interface to use. The interface buttons (refactor, preview) are unresponsive - they are brought into focus when clicked, but do nothing. The only recourse is to close the refactoring window. There is no interface slowness of any kind - the memory pressure indicator in the bottom right is completely stable.

I suspect this is caused by the underlying call to find usages incorrectly handling reaching the limit. I expect this bug is limited in scope to this (and perhaps a small number of other) refactoring tasks.

 

I would like to be able to configure the limit, as I frequently need to deal with ~3-6 thousand usages, and have observed that intellij seems to handle this fine in most cases.

0
1 comment

There is no such setting yet. Please vote and follow this request: https://youtrack.jetbrains.com/issue/IDEA-135962

0

Please sign in to leave a comment.