Skip to content

Conversation

@Randall-Jiang
Copy link
Contributor

…nerated test file

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Fix the issue that user can not open the file diff by clicking the generated test file.

Implementation

I 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.

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Randall-Jiang Randall-Jiang requested a review from a team as a code owner December 11, 2024 22:10
@ctlai95 ctlai95 changed the title feat(amazonq) fix the issue that when user can not open file diff by clicking on ge… fix(amazonq): clicking on generated test file does not open file diff Dec 11, 2024
break
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.

@rli rli merged commit 3548847 into aws:main Dec 12, 2024
9 of 10 checks passed
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 17, 2025
…aws#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.
karanA-aws pushed a commit to karanA-aws/aws-toolkit-jetbrains that referenced this pull request Jan 22, 2025
…aws#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants