-
Notifications
You must be signed in to change notification settings - Fork 510
Closed
Description
When trying to invoke a static/instance method on an unimported type, VS Code should be more helpful.
Environment
- Operating System: Windows_NT x64 10.0.18362
- JDK version: openjdk full version "13.0.1+9"
- Visual Studio Code version: 1.39.2 (user setup)
- Java extension version: 0.52.0
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.
class Foo {
void foo() {
IntStream.
}
}class Foo {
void foo() {
new ArrayList().
}
}Current Result
For the first example, I need to first type something like IntStream i;, then trigger imports, then go back to IntStream. 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:

