Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,12 @@ export class Connector {
case 'featuredev':
this.featureDevChatConnector.onOpenDiff(tabID, filePath, deleted)
break
/*
TODO: This is for temporary solution to show correct viewdiff panel by clicking the filename
Would re-factor it later for the next task
*/
case 'codetest':
this.codeTestChatConnector.onFileClick(tabID, filePath, deleted, messageId)
this.codeTestChatConnector.onFormButtonClick(tabID, messageId ?? '', {id: "utg_view_diff"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now but can you please add a TODO to clean this up? Ideally codeTestChatConnector should have a method called onOpenDiff instead of calling onFormButtonClick which should only be used by form buttons.

break
}
}
Expand Down
Loading