From 5a702f42104f0d76dc08a7c87b70fe4156ca8967 Mon Sep 17 00:00:00 2001 From: Josh Pinkney Date: Wed, 30 Apr 2025 08:08:32 -0400 Subject: [PATCH] fix(amazonq): full project scan command not working --- .../src/amazonq/webview/ui/quickActions/handler.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts index b492f939e11..fe124d1fc0c 100644 --- a/packages/core/src/amazonq/webview/ui/quickActions/handler.ts +++ b/packages/core/src/amazonq/webview/ui/quickActions/handler.ts @@ -107,7 +107,7 @@ export class QuickActionHandler { } } - private handleScanCommand(tabID: string, eventId: string | undefined) { + private handleScanCommand(tabID: string | undefined, eventId: string | undefined) { if (!this.isScanEnabled || !this.mynahUI) { return } @@ -126,6 +126,14 @@ export class QuickActionHandler { return } + /** + * status bar -> "full project scan is now /review" doesn't have a tab ID + * since it's called via a command so we need to manually create one + */ + if (!tabID) { + tabID = this.mynahUI.updateStore('', {}) + } + // if there is no scan tab, open a new one const affectedTabId: string | undefined = this.addTab(tabID)