From 4fc087363e0e2be8f05674678fb031833482a7a4 Mon Sep 17 00:00:00 2001 From: Brian Ignacio Date: Wed, 3 Apr 2024 16:54:24 +0800 Subject: [PATCH] show only valid setups --- src/versionSwitcher/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/versionSwitcher/index.ts b/src/versionSwitcher/index.ts index 531fa5e95..35d32b417 100644 --- a/src/versionSwitcher/index.ts +++ b/src/versionSwitcher/index.ts @@ -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}`,