You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, is there an environment variable to get the full JRE path for the extension? Specifically, when referencing from a devcontainer.json or settings.json file. Below is a path I'm talking about.
For reference, I am creating a Dev Container for my team, which are using different OSs. The container will be using an older JRE version that some plugins won't support. I want to be able to reference the vscode-java JRE path in different settings without having to figure out the path after install.
For example, I am using Redhat's Community Server Connectors. In it, I have to define the java home rsp-ui.rsp.java.home. Currently, I pass the following if a user is on Windows
Does ${localEnv:USER} (or any defined environment variable) work for you in the settings.json ? As far as I know this probably doesn't work there. In fact that's the subject of #3976 . The problem is VS Code doesn't resolve them, or offer a nice way for extensions to do the resolution.
We're looking to use https://www.npmjs.com/package/vscode-variables , which would be done with ${env:<variable>}. Once that's done, it should be possible to define our own variables and resolve them as wanted.
Hello, is there an environment variable to get the full JRE path for the extension? Specifically, when referencing from a
devcontainer.json
orsettings.json
file. Below is a path I'm talking about.For reference, I am creating a Dev Container for my team, which are using different OSs. The container will be using an older JRE version that some plugins won't support. I want to be able to reference the vscode-java JRE path in different settings without having to figure out the path after install.
For example, I am using Redhat's Community Server Connectors. In it, I have to define the java home
rsp-ui.rsp.java.home
. Currently, I pass the following if a user is on Windowsbut on Macs I have to do
If there's a way to get that path without having to look it up, it'd be very useful.
The text was updated successfully, but these errors were encountered: