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.
Classic Eclipse(2024-06) seems to get away with this, for the same project files
Btw, I did attempt to get something meaningful out of the logs, but did not succeed.
Tracing LSP was a bit of a needle in a haystack, if you have no clue what to look for.