mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
suggest inheritor members on second completion only, prefer the default collection getters to them
This commit is contained in:
+3
-2
@@ -223,9 +223,10 @@ public class JavaSmartCompletionContributor extends CompletionContributor {
|
||||
parent != null &&
|
||||
!(parent.getParent() instanceof PsiSwitchLabelStatement)) {
|
||||
for (ExpectedTypeInfo info : mergedInfos) {
|
||||
new JavaMembersGetter(info.getType()).addMembers(position, true, noTypeCheck);
|
||||
final boolean searchInheritors = params.getInvocationCount() > 1;
|
||||
new JavaMembersGetter(info.getType()).addMembers(position, searchInheritors, noTypeCheck);
|
||||
if (!info.getDefaultType().equals(info.getType())) {
|
||||
new JavaMembersGetter(info.getDefaultType()).addMembers(position, true, noTypeCheck);
|
||||
new JavaMembersGetter(info.getDefaultType()).addMembers(position, searchInheritors, noTypeCheck);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user