-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to set/change the Project SDK from Detected SDKs #3857
Comments
The auto detection is done by https://github.com/Eskibear/node-jdk-utils#readme . The setting There is code in the language server to help users when the Gradle version is not compatible with a chosen JDK, https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/ba8d0910917bab70b8565af15d7960c2e1ae8058/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/GradleUtils.java#L83-L120 . Let me know if there's anything about this that doesn't work as you expect. |
@rgrunber , thanks a lot! Did not know that configuration already exist. This issue can be closed. |
We should do a better job at advertising the various options : https://github.com/redhat-developer/vscode-java?tab=readme-ov-file#supported-vs-code-settings . There's quite a lot there. |
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:
This setting would primarily impact runtime configurations. For example:
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.
The text was updated successfully, but these errors were encountered: