From a3bfaba6aa37c8c474b4a8c2ef7a7cf726bf87a3 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Thu, 28 Nov 2024 14:52:06 -0800 Subject: [PATCH] Only prompt for import of java and c++ projects Fixes #697 --- vscode-wpilib/src/extension.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vscode-wpilib/src/extension.ts b/vscode-wpilib/src/extension.ts index a96b3444..7a865985 100644 --- a/vscode-wpilib/src/extension.ts +++ b/vscode-wpilib/src/extension.ts @@ -222,6 +222,11 @@ async function handleAfterTrusted(externalApi: ExternalAPI, context: vscode.Exte continue; } + if ((prefs.getCurrentLanguage() !== 'cpp' && prefs.getCurrentLanguage() !== 'java')) { + logger.log('Project with Unknown Language: ' + prefs.getCurrentLanguage()); + continue; + } + if (prefs.getProjectYear() !== '2025beta') { const importPersistantState = new PersistentFolderState('wpilib.2025betapersist', false, w.uri.fsPath); if (importPersistantState.Value === false) {