Skip to content

Commit f2e9a3a

Browse files
committed
fixed duplicate bean index elements appearing when scanning file in two passes
1 parent da0a8b8 commit f2e9a3a

File tree

1 file changed

+2
-0
lines changed
  • headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans

1 file changed

+2
-0
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/beans/BeansSymbolProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public void addSymbols(Annotation node, ITypeBinding typeBinding, Collection<ITy
8383
else {
8484
WebfluxRouterSymbolProvider.createWebfluxElements(method, context, doc, childElements);
8585
}
86+
} else if (!isWebfluxRouter && SCAN_PASS.TWO.equals(context.getPass())) {
87+
return;
8688
}
8789

8890
boolean isFunction = isFunctionBean(method);

0 commit comments

Comments
 (0)