From f9a2f83d5c771766c2527afae0ff27004bc725a6 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Mon, 6 Jan 2025 10:59:01 +0100 Subject: [PATCH] Feat: Propagate config change when buildConfigurations setting is removed --- client/src/ui/BitbakeConfigPicker.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/ui/BitbakeConfigPicker.ts b/client/src/ui/BitbakeConfigPicker.ts index 571a349b..2894f1f2 100644 --- a/client/src/ui/BitbakeConfigPicker.ts +++ b/client/src/ui/BitbakeConfigPicker.ts @@ -43,6 +43,9 @@ export class BitbakeConfigPicker { assert(this.bitbakeSettings.buildConfigurations[0].name !== undefined) // Cannot happen with the definition in client/package.json // No need to update the memento here, the same default choice will be selected next time this.activeBuildConfiguration = this.bitbakeSettings.buildConfigurations[0].name + } else if (this.bitbakeSettings.buildConfigurations.length === 0) { + // We want to trigger a change event so that a re-scan is triggered + this.activeBuildConfiguration = 'No BitBake configuration' } this.statusBarItem.text = '$(list-selection) ' + this.activeBuildConfiguration this.statusBarItem.show()