spring-projects / sts4

The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse, Visual Studio Code, and Theia
https://spring.io/tools
Eclipse Public License 1.0
877 stars 206 forks source link

Navigational aid for Spring Events #1348

Open jonsmithers opened 1 month ago

jonsmithers commented 1 month ago

Expected Behavior

Anytime you trigger or listen for a spring event, IntelliJ presents these gutter icons. When clicked, a popup will list every place that triggers the event you're listening for OR every place that listens for the event that you're triggering, allowing you to easily jump to these locations. I like this feature.

Screenshot 2024-09-09 at 5 04 04 PM Screenshot 2024-09-09 at 5 05 05 PM

Current Behavior

Currently there is nothing to aid navigation between event listeners and triggerers.

Context

This feature is pretty handy in a codebase that relies on Spring Events.

As an alternative, I could consider refactoring the code to not use Spring Events. Spring Events are harder to navigate compared to plain old function invocations, unless the IDE provides this navigational aid.

martinlippert commented 1 month ago

Thanks @jonsmithers for raising this enhancement request, sounds indeed like a great feature to add. Let's see how we can get this realized.

Do you use the Spring Tools in Eclipse or VSCode?

jonsmithers commented 1 month ago

Using vscode here! And awesome, thank you!