From 370ac52c9fa058c3caca2e9f9b7a0ce97d431c6a Mon Sep 17 00:00:00 2001 From: Martin Lippert Date: Tue, 3 Sep 2024 17:34:02 +0200 Subject: [PATCH] avoid content-assist proposals to show up when the cursor is on the anntation type itself --- .../annotations/AnnotationAttributeCompletionProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/annotations/AnnotationAttributeCompletionProcessor.java b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/annotations/AnnotationAttributeCompletionProcessor.java index d467c1f08..43f1a7c2a 100644 --- a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/annotations/AnnotationAttributeCompletionProcessor.java +++ b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/annotations/AnnotationAttributeCompletionProcessor.java @@ -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=<*>)