Skip to content

[structure view] sorting of projects get out of sync when projects arrive async #1821

Description

@martinlippert

When new projects arrive (because they are added to the workspace or arrive at the language server in an async fashion), they show up in the logical structure view, but not in the right order. Asking the language server for a number of projects, those get sorted alphabetically and appear in that order on the UI. But in case projects get added later on and the UI asks for the structure for this individual project, the ordering is somewhat lost.

I think we should change the way the sorting is implemented and move the logic completely onto the UI side. The language server can deliver the tree structure for one or multiple projects on every request, but the overall sorting of those projects is done on the UI side then. This allows the UI to always keep the whole list of projects sorted in the UI in a much better way that duplicating the logic between the UI and the language server side.

Activity

  1. added this to the 5.2.0.RELEASE milestone on Mar 2, 2026
  2. added
    for: eclipse
    for: vscode
    on Mar 2, 2026
  3. changed the title [-][structure view][/-] [+][structure view] sorting of projects get out of sync when projects arrive async[/+] on Mar 3, 2026
  4. martinlippert commented on Mar 16, 2026

    @martinlippert
    MemberAuthor

    Looks like the sorting on the UI side is now sorting every node level alphabetically, there it should only sort the project nodes alphabetically and not child nodes of any nesting level.

  5. added a commit that references this issue on Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: structural viewtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions