Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore whether the user experience can be improved for diagnostics / quick fixes involving @Dependent #537

Open
mrglavas opened this issue Nov 13, 2024 · 1 comment

Comments

@mrglavas
Copy link

The screenshots I'm including here are from Liberty tools for IntelliJ, but this also applies to LSP4Jakarta.

Consider a managed bean that has been annotated with multiple scopes:
image

The user receives a diagnostic telling them that only one scope type annotation is allowed and is given the option of applying two quick fixes to either remove @Dependent or @RequestScoped.

Possibly not fully understanding the implications, they apply the quick fix to remove @Dependent and now are presented with two new diagnostics, including one which tells them that @Dependent is the only scope allowed:
image

So that the user can make a better informed decision on how to fix their application code, it may be more helpful to present them with all of these diagnostics and perhaps they may resolve all of them with a quick fix in one step.

@mrglavas
Copy link
Author

For reference, see the discussion on this Liberty Tools for IntelliJ PR here: OpenLiberty/liberty-tools-intellij#1091 (comment) which led to this suggestion for improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant