vscode-java
vscode-java copied to clipboard
Intellisense breaks for JDK types when certain (scala) libs are on the classpath
When triggering autocomplete (ctrl+space
) targeting JDK type java.lang.reflect.Field
or java.util.List
and certain (scala) libs are on the classpath, expected suggestions are not coming.
I've observed that List
and Function
are broken by the scala lib itself and Field
is broken by Akka HTTP
Environment
- Operating System: Windows
- JDK version: 21.0.3 (Adoptium)
- Visual Studio Code version: 1.90.2
- Java extension version: 1.32.1
Steps To Reproduce
- Attempt auto complete on variable type
Reproducer with dev container: https://github.com/spangaer/vscode-javals-completion-issue (Dev container because SBT generated eclipse files, but my guess is that doesn't matter)
Current Result
Expected Result
Additional info
It looks to be really specific to the code completions. e.g creating a local var using Quick Fix...
type inference does find the JDK types.