Hello Denis, thank you for your feedback!
I agree that when the sonarlint.ls.javaHome
property is set, it should be honored by SonarLint. I created a ticket to adjust this behavior in an upcoming version.
As a workaround until this ticket is done an shipped, you can:
- Uninstall your current, platform-specific SonarLint from VSCode
- Download the “Universal” VSIX from the marketplace
- Manually install the downloaded VSIX
- Restart VSCode
The “universal” VSIX does not embed a JRE and should honor the path you set in sonarlint.ls.javaHome
.
Please note that the minimum requirement is still Java 11 at the time of writing this message.