avoid content-assist proposals to show up when the cursor is on the anntation type itself

This commit is contained in:
Martin Lippert
2024-09-03 17:34:02 +02:00
parent bc0fc9f459
commit 370ac52c9f

View File

@@ -64,7 +64,8 @@ public class AnnotationAttributeCompletionProcessor implements CompletionProvide
createCompletionProposals(project, doc, node, "value", completions, offset, offset, "", (beanName) -> "\"" + beanName + "\"");
}
// case: @Qualifier(prefix<*>)
else if (node instanceof SimpleName && node.getParent() instanceof Annotation) {
else if (node instanceof SimpleName && node.getParent() instanceof Annotation
&& node != annotation.getTypeName()) {
computeProposalsForSimpleName(project, node, "value", completions, offset, doc);
}
// case: @Qualifier(value=<*>)