Skip to content

Commit 3548847

Browse files
fix(amazonq): clicking on generated test file does not open file diff (#5196)
Updated the connector so that when a user clicks on the generated file, it now triggers the same functionality as clicking the "View Diff" button.
1 parent 624d465 commit 3548847

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,12 @@ export class Connector {
512512
case 'featuredev':
513513
this.featureDevChatConnector.onOpenDiff(tabID, filePath, deleted)
514514
break
515+
/*
516+
TODO: This is for temporary solution to show correct viewdiff panel by clicking the filename
517+
Would re-factor it later for the next task
518+
*/
515519
case 'codetest':
516-
this.codeTestChatConnector.onFileClick(tabID, filePath, deleted, messageId)
520+
this.codeTestChatConnector.onFormButtonClick(tabID, messageId ?? '', {id: "utg_view_diff"})
517521
break
518522
}
519523
}

0 commit comments

Comments
 (0)