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
[structure view] allow users to select the groups to display #1629
By default, the structure view show all groups that are defined via the stereotypes metadata (see #1628). In addition to that, the UI should allow the user to select/deselect individual groups to include or exclude them from the structure tree. This should be a simple check/uncheck option for each group, individual for each project, so this needs to be an action on the project level, not the view level.
The information about the groups that are available for a specific project should come from the language server via a separate command/message. The command to create the project tree content then needs to include the information which groups are selected on the UI to render the corresponding grouping into the tree.
@martinlippert I suspect that we would be remembering the selected groups while the extension is running, right? Or are we thinking of persisting this data somewhere on disk for the next time extension is started?
I'm reading that groups should be selectable on a per project level which is what I was doing as well. However, looking at the way we currently refresh or get the structure initially I wonder if this is still a good idea. Currently the sts/spring-boot/structure command gets everything for all projects and groups is a parameter for all projects. We can of course rework the parameters such that we get groups parameter for each individual project and get the structure only for the projects provided via the parameters but I wonder if this is needed. Are the groups usually spring-web, spring-jpa etc? Or the use can define new custom groups for one project only?
@martinlippert I suspect that we would be remembering the selected groups while the extension is running, right? Or are we thinking of persisting this data somewhere on disk for the next time extension is started?
Ideally we would persist the selection, so that the state is re-created the next time the extension is started. But we could approach this in two steps. Simple, non-persistent solution first, then persistent solution later.
I'm reading that groups should be selectable on a per project level which is what I was doing as well. However, looking at the way we currently refresh or get the structure initially I wonder if this is still a good idea. Currently the sts/spring-boot/structure command gets everything for all projects and groups is a parameter for all projects. We can of course rework the parameters such that we get groups parameter for each individual project and get the structure only for the projects provided via the parameters but I wonder if this is needed. Are the groups usually spring-web, spring-jpa etc? Or the use can define new custom groups for one project only?
Groups are somewhat flexible. They are read from the catalog files per project, so each project might have a different set of groups, depending on what is on the classpath. In addition to that, custom groups can (and probably will) be defined in the project itself or users own libraries, so the set of groups is something we need to get from the language server somehow.
Instead of having a separate command to fetch the group information, we could also include that information in the JSON that the sts/spring-boot/structure commands returns. That way, we could continue to fetch the "all-inclusive" JSON once and use that information on the UI to populate the group selection.
Independent of that, I would still think that the persistence of the group selection should be part of the UI, since that state belongs to the UI (instead of moving that to the language server as well).
Activity
GH-1629: prepare backend for group selection on the logical structure…
BoykoAlex commentedon Sep 29, 2025
@martinlippert I suspect that we would be remembering the selected groups while the extension is running, right? Or are we thinking of persisting this data somewhere on disk for the next time extension is started?
I'm reading that groups should be selectable on a per project level which is what I was doing as well. However, looking at the way we currently refresh or get the structure initially I wonder if this is still a good idea. Currently the
sts/spring-boot/structurecommand gets everything for all projects and groups is a parameter for all projects. We can of course rework the parameters such that we get groups parameter for each individual project and get the structure only for the projects provided via the parameters but I wonder if this is needed. Are the groups usuallyspring-web,spring-jpaetc? Or the use can define new custom groups for one project only?martinlippert commentedon Sep 30, 2025
Ideally we would persist the selection, so that the state is re-created the next time the extension is started. But we could approach this in two steps. Simple, non-persistent solution first, then persistent solution later.
Groups are somewhat flexible. They are read from the catalog files per project, so each project might have a different set of groups, depending on what is on the classpath. In addition to that, custom groups can (and probably will) be defined in the project itself or users own libraries, so the set of groups is something we need to get from the language server somehow.
Instead of having a separate command to fetch the group information, we could also include that information in the JSON that the
sts/spring-boot/structurecommands returns. That way, we could continue to fetch the "all-inclusive" JSON once and use that information on the UI to populate the group selection.Independent of that, I would still think that the persistence of the group selection should be part of the UI, since that state belongs to the UI (instead of moving that to the language server as well).
BoykoAlex commentedon Oct 2, 2025
Should be addressed via #1661
GH-1629: include and use project id explicitly, do not assume that pr…