Skip to content

Conversation

@laileni-aws
Copy link
Contributor

@laileni-aws laileni-aws commented Oct 9, 2024

Types of changes

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

Description

Problem

cwsprChatUserIntent is returning undefined for amazonq_interactWithMessage event. This event is emitted for insert_code_at_cursor_position, code_was_copied_to_clipboard etc.

Solution

  • Storing the mapping of messageId: UserIntent and sending this if user clicked on insert at cursor or copy to clipboard events.
  • Replaced deprecated onCodeInsertToCursorPosition and onCopyCodeToClipboard functions with onCodeBlockActionClicked.

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.

@laileni-aws laileni-aws marked this pull request as ready for review October 9, 2024 01:33
@laileni-aws laileni-aws requested review from a team as code owners October 9, 2024 01:33
@laileni-aws laileni-aws merged commit 8f9c157 into aws:main Oct 9, 2024
9 of 12 checks passed
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