-
Notifications
You must be signed in to change notification settings - Fork 443
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
Autocompletion with unimported types #1123
Comments
That's an interesting feature, but we might be limited by JDT's capabilities. @snjeza can you please investigate whether this needs fixing upstream JDT or if it's doable from jdt.ls? |
Eclipse works the same way. |
Can you please report the issue upstream in JDT then? |
@mickaelistria You may want to take a look at eclipse-jdt/eclipse.jdt.core#1502 |
thank you |
I have tried Netbeans 19 and IntelliJ IDEA 2022.2.5. They work like eclipse Netbeans 19 IntelliJ IDEA 2022.2.5- (works with enabled |
For NetBeans: yes, ArrayList broke somewhere between 11 and 19; IntStream still works. |
It works in Eclipse/VS Code, too |
+1 |
Just tried this out in our pre-releases, since the fix was merged upstream (thanks to @snjeza ), and it seems we've picked it up as well now : Marking as closed for now. |
When trying to invoke a static/instance method on an unimported type, VS Code should be more helpful.
Environment
Steps To Reproduce
Consider the code snippets below. When invoking code completion after the dot, I'd expect VS Code to help me somehow, e.g. by proposing all possible completions of all applicable types it knows of. Or by proposing to import the unknown types.
Current Result
For the first example, I need to first type something like
IntStream i;
, then trigger imports, then go back toIntStream.
to trigger autocompletion.Expected Result
I'd expect VS Code to help me somehow, e.g. by proposing all possible completions of all applicable types it knows of. Or by proposing to import the missing types.
Additional Informations
For comparison, when invoking the samples above in Apache NetBeans 11.0, I get the following:
The text was updated successfully, but these errors were encountered: