Skip to content

Commit

Permalink
show only valid setups
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Apr 3, 2024
1 parent 8e0597b commit 4fc0873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/versionSwitcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export async function selectIdfSetup(workspaceFolder: WorkspaceFolder) {
await window.showInformationMessage("No ESP-IDF Setups found");
return;
}
const idfSetupOptions = idfSetups.map((idfSetup) => {
const onlyValidIdfSetups = idfSetups.filter((i) => i.isValid);
const idfSetupOptions = onlyValidIdfSetups.map((idfSetup) => {
return {
label: `Version: v${idfSetup.version}`,
description: `IDF_PATH: ${idfSetup.idfPath}`,
Expand Down

0 comments on commit 4fc0873

Please sign in to comment.