Skip to content

Commit 82f5d76

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): show notification when user switches tabs (#7374)
## Problem When users have a /transform tab open, then open a new tab and type /transform, we open the existing /transform tab but don't show a notification like IntelliJ does. ## Solution Add notification in top right. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: David Hasani <[email protected]>
1 parent 1d72423 commit 82f5d76

File tree

1 file changed

+6
-0
lines changed
  • packages/core/src/amazonq/webview/ui/quickActions

1 file changed

+6
-0
lines changed

packages/core/src/amazonq/webview/ui/quickActions/handler.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ export class QuickActionHandler {
308308
if (gumbyTabId !== undefined) {
309309
this.mynahUI.selectTab(gumbyTabId, eventId || '')
310310
this.connector.onTabChange(gumbyTabId)
311+
this.mynahUI.notify({
312+
duration: 5000,
313+
title: 'Q CodeTransformation',
314+
content:
315+
"Switched to the existing /transform tab; click 'Start a new transformation' below to run another transformation",
316+
})
311317
return
312318
}
313319

0 commit comments

Comments
 (0)