Skip to content

java.configuration.runtimes not working #2625

@nunojun

Description

@nunojun

[provide a description of the issue]

Environment
  • Operating System: MacOS Big Sur
  • JDK version: openjdk8, openjdk11, openjdk17, temurin8, temurin 11, temurin 17
  • Visual Studio Code version: 1.70.1
  • Java extension version: 0.25.0
Steps To Reproduce
  1. Open a Java project - Spring Boot and java.version on Maven is 11
  2. Wait until Java Build Status is finished
  3. Hover mouse over on "Language Level" of Java Runtime at the right-bottom.
  4. It is always one of the 8 version, even though the title shows JavaSE-11. My configuration change on settings.json (for user and workplace both) is not working.
  5. If I remove all 8 JDKs, JavaSE-11 is still shown but the path becomes "/Library/Internet Plug-ins/Java/AppletPlugin.plugin/Contents/Home".

[Please attach a sample project reproducing the error]
Screen Shot 2022-08-11 at 12 42 27 PM
Please attach logs

Current Result

java.configuration.runtimes does not work at all and I cannot use any other JDKs except the one VSCode chooses by default.

Expected Result

I had been able to chose different JDKs per project.

Additional Informations

I have not used VSCode for my Java development for a while and found this recently.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions