Skip to content

Duplicate nodes in the "Logical Structure Tree" #1810

Closed

Description

@BoykoAlex

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)

Activity

  1. added this to the 5.1.0.RELEASE milestone on Feb 26, 2026
  2. added
    for: eclipse
    for: vscode
    and removed on Feb 26, 2026
  3. martinlippert commented on Feb 26, 2026

    @martinlippert
    Member

    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.

  4. martinlippert commented on Feb 26, 2026

    @martinlippert
    Member

    The correct tree structure is definitely the one with all child elements appearing under the same stereotype node.

  5. martinlippert commented on Feb 26, 2026

    @martinlippert
    Member
  6. added a commit that references this issue on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

for: eclipsefor: vscodetheme: structural viewtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions