From 463645d2462be5ebc961f8aaea52e04f53eb7fbb Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Wed, 7 Aug 2024 18:04:17 -0700 Subject: [PATCH] Update Set VS Code Java Home setting java.home is deprecated. Corollary to #611 --- vscode-wpilib/src/vscommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vscode-wpilib/src/vscommands.ts b/vscode-wpilib/src/vscommands.ts index 552e220d..917f5fde 100644 --- a/vscode-wpilib/src/vscommands.ts +++ b/vscode-wpilib/src/vscommands.ts @@ -382,8 +382,8 @@ export function createVsCommands(context: vscode.ExtensionContext, externalApi: return; } const javaConfig = vscode.workspace.getConfiguration('java'); - await javaConfig.update('home', javaHome, vscode.ConfigurationTarget.Global); - await vscode.window.showInformationMessage(i18n('message', 'Successfully set java.home')); + await javaConfig.update('jdt.ls.java.home', javaHome, vscode.ConfigurationTarget.Global); + await vscode.window.showInformationMessage(i18n('message', 'Successfully set java.jdt.ls.java.home')); })); context.subscriptions.push(vscode.commands.registerCommand('wpilibcore.installGradleTools', async () => {