Skip to content

Commit

Permalink
Only prompt for import of java and c++ projects
Browse files Browse the repository at this point in the history
Fixes #697
  • Loading branch information
sciencewhiz committed Nov 28, 2024
1 parent 5047124 commit a3bfaba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vscode-wpilib/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3bfaba

Please sign in to comment.