Skip to content

Option to set/change the Project SDK from Detected SDKs #3857

@mamilic

Description

@mamilic

Would it be possible to allow users to set or modify the "Project Java SDK" in VS Code? Currently, it seems to be auto-detected. This proposed setting would allow users to select from a dropdown of detected SDKs, with an option to include manually configured SDKs.

Scope and Application:
The configured SDK setting would be applied across all relevant Java-related components within VS Code, such as:

  • JDT Language Server (JDTLS)
  • VS Code Gradle Extension
  • Any other Java-related extensions, where applicable

This setting would primarily impact runtime configurations. For example:

  • The Gradle daemon version used for project builds()as sometime the version can not be detected from gradle scripts, as it is dynamic)
  • The Java version leveraged by JDTLS for code navigation and browsing (e.g., when exploring standard classes like String)
  • Maven and other project dependencies as relevant
    Important Note:
    This setting should not alter the Java version used by the JDTLS server itself.

Thank you for considering this feature. It would provide users with more flexibility in managing their development environment and streamline project compatibility across different Java SDK versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions