Skip to content

Commit 5a702f4

Browse files
committed
fix(amazonq): full project scan command not working
1 parent f07432b commit 5a702f4

File tree

1 file changed

+9
-1
lines changed
  • packages/core/src/amazonq/webview/ui/quickActions

1 file changed

+9
-1
lines changed

packages/core/src/amazonq/webview/ui/quickActions/handler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class QuickActionHandler {
107107
}
108108
}
109109

110-
private handleScanCommand(tabID: string, eventId: string | undefined) {
110+
private handleScanCommand(tabID: string | undefined, eventId: string | undefined) {
111111
if (!this.isScanEnabled || !this.mynahUI) {
112112
return
113113
}
@@ -126,6 +126,14 @@ export class QuickActionHandler {
126126
return
127127
}
128128

129+
/**
130+
* status bar -> "full project scan is now /review" doesn't have a tab ID
131+
* since it's called via a command so we need to manually create one
132+
*/
133+
if (!tabID) {
134+
tabID = this.mynahUI.updateStore('', {})
135+
}
136+
129137
// if there is no scan tab, open a new one
130138
const affectedTabId: string | undefined = this.addTab(tabID)
131139

0 commit comments

Comments
 (0)