diff --git a/vscode/src/configurations/handlers.ts b/vscode/src/configurations/handlers.ts index 8e225f5..54c3742 100644 --- a/vscode/src/configurations/handlers.ts +++ b/vscode/src/configurations/handlers.ts @@ -57,10 +57,11 @@ export const inspectConfiguration = (config: string) => { } export const jdkHomeValueHandler = async (): Promise => { - return getConfigurationValueWithVariablesSubstituted(configKeys.jdkHome) || - process.env.JDK_HOME || - process.env.JAVA_HOME || - null; + return getConfigurationValueWithVariablesSubstituted(configKeys.jdkHome) + .then(resolvedValue => resolvedValue || + process.env.JDK_HOME || + process.env.JAVA_HOME || + null); } export const projectJdkHomeValueHandler = async (): Promise => {