You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate nodes in the "Logical Structure Tree" #1810
Open spring-restbucks app in VSCode
Open "Logical Structure" view
Expand the "Restbucks" -> "Order".
Observe "Order" node doesn't have children, error popup in the right-bottom corner about duplicate id nodes in the tree.
The problem is that under this node the boot ls indeed creates two nodes with the same id for "Event Listeners (Spring)". One with 2 children and the other with 1 child.
Perhaps, these were meant to be combined into a single node (if yes, this is an easy fix)
It turns out that the node handler is called twice for the exact same stereotype definition from the project tree implementation if there are method elements as well as type elements grouped under the same stereotype - which is the case for the event listeners defined in restbucks. So we need to see if the tools-specific json node handler should take care of this or the project tree implementation instead.
Activity
martinlippert commentedon Feb 26, 2026
It turns out that the node handler is called twice for the exact same stereotype definition from the project tree implementation if there are method elements as well as type elements grouped under the same stereotype - which is the case for the event listeners defined in restbucks. So we need to see if the tools-specific json node handler should take care of this or the project tree implementation instead.
martinlippert commentedon Feb 26, 2026
The correct tree structure is definitely the one with all child elements appearing under the same stereotype node.
martinlippert commentedon Feb 26, 2026
(cc @odrotbohm)
GH-1810: avoid duplicate node definitions in node handler