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

No completion on generic anonymous class instance objects #2505

Closed
gayanper opened this issue Feb 28, 2023 · 5 comments · Fixed by #2508
Closed

No completion on generic anonymous class instance objects #2505

gayanper opened this issue Feb 28, 2023 · 5 comments · Fixed by #2508
Assignees

Comments

@gayanper
Copy link
Contributor

gayanper commented Feb 28, 2023

ArrayList field = new ArrayList() {}.|

No completions are shown.

But if the ArrayList is replaced with a non final non generic class, the completions work. Or if i add a ; before completions, then the completions work as well.

eclipse-jdt/eclipse.jdt.core#802

@gayanper
Copy link
Contributor Author

Extension Version : v1.16.2023022803

@gayanper
Copy link
Contributor Author

@snjeza I report the issue here since I couldn't reproduced it in JDT Eclipse

@snjeza
Copy link
Contributor

snjeza commented Feb 28, 2023

@gayanper You may want to take a look at #2508
A workaround is to set

"java.completion.postfix.enabled": false,

@rgrunber
Copy link
Contributor

rgrunber commented Mar 1, 2023

Looks like it's happening for the for template. If it's not happening upstream, is there any chance that something was left out of the postfix implementation in JDT-LS ?

@snjeza
Copy link
Contributor

snjeza commented Mar 1, 2023

I will check.

@rgrunber rgrunber added this to the Mid March 2023 milestone Mar 15, 2023
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

Successfully merging a pull request may close this issue.

3 participants