Skip to content

Conversation

@tverney
Copy link
Contributor

@tverney tverney commented Oct 8, 2024

Types of changes

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

Description

Currently /dev don't support stop code generation. This PR introduces this functionality (watch the video below).

Mynah UI provides onStopChatResponse API which we can hook in the cancellation token provided on VS Code, sharing across an active session, aborting current progress.

Screen.Recording.2024-10-16.at.10.11.20.AM.mov

VS Code side: aws/aws-toolkit-vscode#5675

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.

@tverney tverney force-pushed the feature/stop-generation branch from 681f5c0 to 7f84621 Compare October 15, 2024 20:05
@tverney tverney marked this pull request as ready for review October 16, 2024 15:35
@tverney tverney requested review from a team as code owners October 16, 2024 15:35
@tverney tverney requested a review from neilk-aws October 16, 2024 16:53
@tverney
Copy link
Contributor Author

tverney commented Oct 16, 2024

!!Important - FYI toolkit team: this is only to be merged in next week's release. CC: @neilk-aws

tabId = tabId,
followUp = listOf(
FollowUp(
pillText = message("amazonqFeatureDev.follow_up.new_task"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead

private fun FeatureDevController.openChatNotificationAction() =
NotificationAction.createSimple(
message("amazonqFeatureDev.code_generation.notification_open_link"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead
Copy link
Contributor

@rli rli left a comment

Choose a reason for hiding this comment

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

very difficult to review with all the whitespace changes

Copy link
Contributor

Choose a reason for hiding this comment

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

please minimize the diff. try the contents of *.normal.json instead

tverney and others added 2 commits October 22, 2024 22:31
…kits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevControllerExtensions.kt

Co-authored-by: Richard Li <[email protected]>
tabId = tabId,
messageType = FeatureDevMessageType.Answer,
message = message("amazonqFeatureDev.code_generation.no_file_changes")
message = message("amazonqFeatureDev.code_generation.no_file_changes"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead
@tverney tverney requested a review from rli October 23, 2024 18:34
@tverney tverney requested a review from rli October 23, 2024 21:56
@rli rli merged commit 8dc4b81 into aws:main Oct 23, 2024
11 of 13 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.

5 participants