mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-136783 Completion: delay showing middle-matched items until at least some (or all) start-matching ones are shown
avoid useless allocations
This commit is contained in:
+1
@@ -426,6 +426,7 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
void addDelayedMiddleMatches() {
|
||||
ArrayList<CompletionResult> delayed;
|
||||
synchronized (myDelayedMiddleMatches) {
|
||||
if (myDelayedMiddleMatches.isEmpty()) return;
|
||||
delayed = ContainerUtil.newArrayList(myDelayedMiddleMatches);
|
||||
myDelayedMiddleMatches.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user