Skip to content

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

@martinlippert

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions