Make java.configuration.runtimes machine-overridable#2337
Make java.configuration.runtimes machine-overridable#2337rgrunber merged 2 commits intoredhat-developer:masterfrom
Conversation
Signed-off-by: Parth <thakkarparth007@gmail.com>
70a4f47 to
1d84904
Compare
|
After reconsidering, I think this approach might work. Before my main concern was that allowing a project/folder to set @testforstephen @fbricon , let me know if there's some case we're missing here. |
|
i think it's OK, other than we need to add Lines 13 to 20 in 083f580 |
|
Regarding this, I had a feature request. In E.g. I have two Maven projects with language level set to I'm wondering if we'll have this feature with this PR? Or do we need change something in jdtls, as I remember the backend setting is also per machine. |
I just tried out the PR and it allows me to override I couldn't set a folder-specific setting on the client for a multi-root workspace, and get it to be sent to the language server, but maybe I'm not understanding how the setting should work. The problem I see is I don't think we even support a multi-root project. In So this would only work with a single "project" per workspace. |
I think that's fine for me. I can always open different projects in different workspace for the moment. But in Eclipse, when I import multiple projects, I can configure VMInstall per project. So I think it's at least feasible regardless of effort. In long-term plan, I believe we do want to fully support multi-root workspace, maybe we should think about how to refactor the JVMConfigurator then. |
Yup! The JDT API definitely has some way to set the JVM per project. We've likely only used the global setting for now. As long as we're fine with some functionality being unsupported for the time being, I think it should be fine to proceed with this. @thakkarparth007 , can you update the PR based on #2337 (comment) |
Change as per: redhat-developer#2337 (comment) Signed-off-by: Parth Thakkar <thakkar.parth.d@gmail.com>
ee48a5a to
46f8e01
Compare
|
@rgrunber done. |
|
If there's no opposition to this, or special case we've missed, I'll merge soon. Last remaining thing is to update https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements to briefly mention workspace settings can now take advantage of the setting. |
Potential fix for #2001
I have no idea if changing this configuration's scope can cause unintentional side effects. If so, do educate me and I'd be happy to make some code changes if it is not a lot.