mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
javadoc completion: suggest qualified names only with non-empty prefix
This commit is contained in:
@@ -232,7 +232,7 @@ public class JavaDocCompletionContributor extends CompletionContributor {
|
||||
for (LookupElement element : completeJavadocReference(ref.getElement(), ref)) {
|
||||
result.addElement(LookupElementDecorator.withInsertHandler(element, wrapIntoLinkTag((context, item) -> element.handleInsert(context))));
|
||||
}
|
||||
} else {
|
||||
} else if (matcher.getPrefix().length() > 0) {
|
||||
InsertHandler<JavaPsiClassReferenceElement> handler = wrapIntoLinkTag(JavaClassNameInsertHandler.JAVA_CLASS_INSERT_HANDLER);
|
||||
AllClassesGetter.processJavaClasses(parameters, matcher, parameters.getInvocationCount() == 1, psiClass ->
|
||||
result.addElement(AllClassesGetter.createLookupItem(psiClass, handler)));
|
||||
|
||||
Reference in New Issue
Block a user