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

Add Quick Fix to support creating a Record when encountering an unknown type #3988

Closed
erikweibust opened this issue Mar 26, 2025 · 2 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#3420

Comments

@erikweibust
Copy link

When using the Quick Fix feature I expect that it should recommend "create record XXX" when it encounters an unknown type in code. I don't see that or a way to enable it.

Image
@rgrunber
Copy link
Member

Looks like we're missing the code from places like https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/8e8ab276f031282fc8c37aaa2a89d6a38e913c8f/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/corrections/proposals/NewCUProposal.java#L293-L310 . It should be pretty easy to implement though so I can try that and see if it resolves things.

@rgrunber rgrunber self-assigned this Mar 26, 2025
@rgrunber rgrunber moved this to In Progress in Java Tooling Mar 26, 2025
@erikweibust
Copy link
Author

Awesome! Please let me know if I can help test this enhancement.

@rgrunber rgrunber moved this from In Progress to Pending review in Java Tooling Mar 26, 2025
@rgrunber rgrunber added this to the End April 2025 milestone Mar 27, 2025
@github-project-automation github-project-automation bot moved this from Pending review to Done in Java Tooling Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants