File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/core/src/amazonq/webview/ui/quickActions Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export class QuickActionHandler {
155155 }
156156 }
157157
158- private handleTestCommand ( chatPrompt : ChatPrompt , tabID : string , eventId : string | undefined ) {
158+ private handleTestCommand ( chatPrompt : ChatPrompt , tabID : string | undefined , eventId : string | undefined ) {
159159 if ( ! this . isTestEnabled || ! this . mynahUI ) {
160160 return
161161 }
@@ -169,6 +169,15 @@ export class QuickActionHandler {
169169 return
170170 }
171171
172+ /**
173+ * right click -> generate test has no tab id
174+ * we have to manually create one if a testgen tab
175+ * wasn't previously created
176+ */
177+ if ( ! tabID ) {
178+ tabID = this . mynahUI . updateStore ( '' , { } )
179+ }
180+
172181 // if there is no test tab, open a new one
173182 const affectedTabId : string | undefined = this . addTab ( tabID )
174183
You can’t perform that action at this time.
0 commit comments