Repository navigation
Structure view groupings UI - #1661
Merged
Merged
Conversation
BoykoAlex
force-pushed
the
structure-view-groups
branch
from
October 1, 2025 20:53
6713347 to
48f92df
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds “Structure view groupings” to the Spring explorer: users can select which groups to show per project, with choices persisted per workspace.
- Introduces a “Select Groups to Show/Hide” command tied to project nodes in the Spring explorer.
- Persists per-project visible groups and sends them to the language server to shape the structure view.
- Refactors explorer tree initialization and expansion-state tracking into the provider.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| vscode-extensions/vscode-spring-boot/package.json | Adds a project-node context menu item and command for group selection. |
| vscode-extensions/vscode-spring-boot/lib/explorer/structure-tree-manager.ts | Registers commands, persists group selections, and passes group filters to the LS. |
| vscode-extensions/vscode-spring-boot/lib/explorer/nodes.ts | Marks project nodes with a distinct context value (“project”) for menu targeting. |
| vscode-extensions/vscode-spring-boot/lib/explorer/explorer-tree-provider.ts | Adds a createTreeView helper and internalizes expansion-state tracking. |
| vscode-extensions/vscode-spring-boot/lib/copilot/copilotRequest.ts | Removes verbose request logging. |
| vscode-extensions/vscode-spring-boot/lib/Main.ts | Activates the structure explorer via the new provider API and manager. |
| headless-services/.../StructureViewUtil.java | Accepts Collection for group filters. |
| headless-services/.../SpringIndexCommands.java | Extends command args to per-project group maps, adds groups query command; parsing and return handling updated. |
| headless-services/.../ModulithStructureView.java | Accepts Collection for group filters. |
| headless-services/.../JMoleculesStructureView.java | Accepts Collection for group filters. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| .map(groupEntry -> groupEntry.getAsString()) | ||
| .toList(); | ||
| if (groupsElement != null) { | ||
| selectedGroups = new Gson().fromJson(groupsElement, new TypeToken<Map<String, Set<String>>>() {}); |
There was a problem hiding this comment.
Gson#fromJson requires a Type for generic deserialization. Pass the Type from the TypeToken using .getType(), otherwise this code will not compile and will not deserialize correctly.
Suggested change
| selectedGroups = new Gson().fromJson(groupsElement, new TypeToken<Map<String, Set<String>>>() {}); | |
| selectedGroups = new Gson().fromJson(groupsElement, new TypeToken<Map<String, Set<String>>>() {}.getType()); |
Signed-off-by: BoykoAlex <[email protected]>
Signed-off-by: BoykoAlex <[email protected]>
BoykoAlex
force-pushed
the
structure-view-groups
branch
from
October 1, 2025 21:38
d2d7bc6 to
4ab1223
Compare
Signed-off-by: BoykoAlex <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1629