Skip to content

Commit effc435

Browse files
authored
feat(amazonq): rename CodeWhisperer commands #4706
Problem Adopt Amazon Q as the new product name. Solution Rename public facing commands from CodeWhisperer to amazon q. Note: Only commands are renamed. For view ids and other resources, as long as they are not visible to customers, they are not renamed.
1 parent 1ec96a9 commit effc435

30 files changed

+367
-372
lines changed

packages/amazonq/package.json

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"qna": false,
1919
"activationEvents": [
2020
"onStartupFinished",
21-
"onUri"
21+
"onUri",
22+
"onCommand:aws.amazonq.accept",
23+
"onView:aws.codeWhisperer.securityPanel"
2224
],
2325
"main": "./dist/src/extension",
2426
"scripts": {
@@ -229,15 +231,15 @@
229231
"menus": {
230232
"commandPalette": [
231233
{
232-
"command": "aws.codewhisperer.signout",
234+
"command": "aws.amazonq.signout",
233235
"when": "false"
234236
},
235237
{
236-
"command": "aws.codewhisperer.reconnect",
238+
"command": "aws.amazonq.reconnect",
237239
"when": "false"
238240
},
239241
{
240-
"command": "aws.codeWhisperer.openReferencePanel",
242+
"command": "aws.amazonq.openReferencePanel",
241243
"when": "false"
242244
},
243245
{
@@ -313,7 +315,7 @@
313315
"group": "navigation@2"
314316
},
315317
{
316-
"command": "aws.codeWhisperer.openReferencePanel",
318+
"command": "aws.amazonq.openReferencePanel",
317319
"when": "view == aws.AmazonQChatView",
318320
"group": "0_topAmazonQ@1"
319321
},
@@ -323,12 +325,12 @@
323325
"group": "1_amazonQ@1"
324326
},
325327
{
326-
"command": "aws.codewhisperer.signout",
328+
"command": "aws.amazonq.signout",
327329
"when": "(view == aws.AmazonQChatView) && aws.codewhisperer.connected",
328330
"group": "2_amazonQ@4"
329331
},
330332
{
331-
"command": "aws.codewhisperer.reconnect",
333+
"command": "aws.amazonq.reconnect",
332334
"when": "(view == aws.AmazonQChatView) && aws.codewhisperer.connectionExpired",
333335
"group": "2_amazonQ@3"
334336
},
@@ -402,92 +404,92 @@
402404
{
403405
"command": "aws.amazonq.explainCode",
404406
"title": "%AWS.command.amazonq.explainCode%",
405-
"category": "%AWS.title%"
407+
"category": "%AWS.amazonq.productName%"
406408
},
407409
{
408410
"command": "aws.amazonq.refactorCode",
409411
"title": "%AWS.command.amazonq.refactorCode%",
410-
"category": "%AWS.title%"
412+
"category": "%AWS.amazonq.productName%"
411413
},
412414
{
413415
"command": "aws.amazonq.fixCode",
414416
"title": "%AWS.command.amazonq.fixCode%",
415-
"category": "%AWS.title%"
417+
"category": "%AWS.amazonq.productName%"
416418
},
417419
{
418420
"command": "aws.amazonq.optimizeCode",
419421
"title": "%AWS.command.amazonq.optimizeCode%",
420-
"category": "%AWS.title%"
422+
"category": "%AWS.amazonq.productName%"
421423
},
422424
{
423425
"command": "aws.amazonq.sendToPrompt",
424426
"title": "%AWS.command.amazonq.sendToPrompt%",
425-
"category": "%AWS.title%"
427+
"category": "%AWS.amazonq.productName%"
426428
},
427429
{
428430
"command": "aws.amazonq.login",
429431
"title": "%AWS.command.login%",
430-
"category": "%AWS.title%",
432+
"category": "%AWS.amazonq.productName%",
431433
"cloud9": {
432434
"cn": {
433435
"title": "%AWS.command.login.cn%",
434-
"category": "%AWS.title.cn%"
436+
"category": "%AWS.amazonq.productName.cn%"
435437
}
436438
},
437439
"enablement": "false"
438440
},
439441
{
440442
"command": "aws.amazonq.credentials.profile.create",
441443
"title": "%AWS.command.credentials.profile.create%",
442-
"category": "%AWS.title%",
444+
"category": "%AWS.amazonq.productName%",
443445
"cloud9": {
444446
"cn": {
445-
"category": "%AWS.title.cn%"
447+
"category": "%AWS.amazonq.productName.cn%"
446448
}
447449
},
448450
"enablement": "false"
449451
},
450452
{
451453
"command": "aws.amazonq.credentials.edit",
452454
"title": "%AWS.command.credentials.edit%",
453-
"category": "%AWS.title%",
455+
"category": "%AWS.amazonq.productName%",
454456
"cloud9": {
455457
"cn": {
456-
"category": "%AWS.title.cn%"
458+
"category": "%AWS.amazonq.productName.cn%"
457459
}
458460
},
459461
"enablement": "false"
460462
},
461463
{
462464
"command": "aws.amazonq.logout",
463465
"title": "%AWS.command.logout%",
464-
"category": "%AWS.title%",
466+
"category": "%AWS.amazonq.productName%",
465467
"cloud9": {
466468
"cn": {
467-
"category": "%AWS.title.cn%"
469+
"category": "%AWS.amazonq.productName.cn%"
468470
}
469471
},
470472
"enablement": "false"
471473
},
472474
{
473475
"command": "aws.amazonq.auth.addConnection",
474476
"title": "%AWS.command.auth.addConnection%",
475-
"category": "%AWS.title%"
477+
"category": "%AWS.amazonq.productName%"
476478
},
477479
{
478480
"command": "aws.amazonq.auth.manageConnections",
479481
"title": "%AWS.command.auth.showConnectionsPage%",
480-
"category": "%AWS.title%"
482+
"category": "%AWS.amazonq.productName%"
481483
},
482484
{
483-
"command": "aws.codewhisperer.reconnect",
485+
"command": "aws.amazonq.reconnect",
484486
"title": "%AWS.command.codewhisperer.reconnect%",
485-
"category": "%AWS.title%"
487+
"category": "%AWS.amazonq.productName%"
486488
},
487489
{
488-
"command": "aws.codeWhisperer.openReferencePanel",
490+
"command": "aws.amazonq.openReferencePanel",
489491
"title": "%AWS.command.codewhisperer.openReferencePanel%",
490-
"category": "%AWS.title%"
492+
"category": "%AWS.amazonq.productName%"
491493
},
492494
{
493495
"command": "aws.amazonq.transformationHub.reviewChanges.acceptChanges",
@@ -515,104 +517,104 @@
515517
{
516518
"command": "aws.amazonq.auth.switchConnections",
517519
"title": "%AWS.command.auth.switchConnections%",
518-
"category": "%AWS.title%"
520+
"category": "%AWS.amazonq.productName%"
519521
},
520522
{
521523
"command": "aws.amazonq.auth.signout",
522524
"title": "%AWS.command.auth.signout%",
523-
"category": "%AWS.title%",
525+
"category": "%AWS.amazonq.productName%",
524526
"enablement": "!isCloud9"
525527
},
526528
{
527529
"command": "aws.amazonq.auth.help",
528530
"title": "%AWS.generic.viewDocs%",
529-
"category": "%AWS.title%",
531+
"category": "%AWS.amazonq.productName%",
530532
"icon": "$(question)"
531533
},
532534
{
533535
"command": "aws.amazonq.createIssueOnGitHub",
534536
"title": "%AWS.command.createIssueOnGitHub%",
535-
"category": "%AWS.title%",
537+
"category": "%AWS.amazonq.productName%",
536538
"cloud9": {
537539
"cn": {
538-
"category": "%AWS.title.cn%"
540+
"category": "%AWS.amazonq.productName.cn%"
539541
}
540542
}
541543
},
542544
{
543545
"command": "aws.amazonq.submitFeedback",
544546
"title": "%AWS.command.submitFeedback%",
545547
"enablement": "!aws.isWebExtHost",
546-
"category": "%AWS.title%",
548+
"category": "%AWS.amazonq.productName%",
547549
"icon": "$(comment)",
548550
"cloud9": {
549551
"cn": {
550-
"category": "%AWS.title.cn%"
552+
"category": "%AWS.amazonq.productName.cn%"
551553
}
552554
}
553555
},
554556
{
555557
"command": "aws.amazonq.viewLogs",
556558
"title": "%AWS.command.viewLogs%",
557-
"category": "%AWS.title%"
559+
"category": "%AWS.amazonq.productName%"
558560
},
559561
{
560562
"command": "aws.amazonq.github",
561563
"title": "%AWS.command.github%",
562-
"category": "%AWS.title%",
564+
"category": "%AWS.amazonq.productName%",
563565
"cloud9": {
564566
"cn": {
565-
"category": "%AWS.title.cn%"
567+
"category": "%AWS.amazonq.productName.cn%"
566568
}
567569
}
568570
},
569571
{
570572
"command": "aws.amazonq.aboutExtension",
571573
"title": "%AWS.command.aboutToolkit%",
572-
"category": "%AWS.title%"
574+
"category": "%AWS.amazonq.productName%"
573575
},
574576
{
575-
"command": "aws.codeWhisperer",
577+
"command": "aws.amazonq.invokeInlineCompletion",
576578
"title": "%AWS.command.codewhisperer.title%",
577-
"category": "%AWS.title%"
579+
"category": "%AWS.amazonq.productName%"
578580
},
579581
{
580-
"command": "aws.codeWhisperer.configure",
582+
"command": "aws.amazonq.configure",
581583
"title": "%AWS.command.codewhisperer.configure%",
582-
"category": "%AWS.title%",
584+
"category": "%AWS.amazonq.productName%",
583585
"icon": "$(gear)",
584586
"cloud9": {
585587
"cn": {
586-
"category": "%AWS.title.cn%"
588+
"category": "%AWS.amazonq.productName.cn%"
587589
}
588590
}
589591
},
590592
{
591-
"command": "aws.codeWhisperer.introduction",
593+
"command": "aws.amazonq.introduction",
592594
"title": "%AWS.command.codewhisperer.introduction%",
593-
"category": "%AWS.title%",
595+
"category": "%AWS.amazonq.productName%",
594596
"icon": "$(question)",
595597
"cloud9": {
596598
"cn": {
597-
"category": "%AWS.title.cn%"
599+
"category": "%AWS.amazonq.productName.cn%"
598600
}
599601
}
600602
},
601603
{
602-
"command": "aws.codewhisperer.signout",
604+
"command": "aws.amazonq.signout",
603605
"title": "%AWS.command.codewhisperer.signout%",
604-
"category": "%AWS.title%",
606+
"category": "%AWS.amazonq.productName%",
605607
"icon": "$(debug-disconnect)"
606608
},
607609
{
608610
"command": "aws.amazonq.learnMore",
609611
"title": "%AWS.amazonq.learnMore%",
610-
"category": "%AWS.title%"
612+
"category": "%AWS.amazonq.productName%"
611613
},
612614
{
613615
"command": "aws.amazonq.welcome",
614616
"title": "%AWS.command.q.welcome%",
615-
"category": "%AWS.title%"
617+
"category": "%AWS.amazonq.productName%"
616618
},
617619
{
618620
"command": "aws.dev.openMenu",
@@ -689,19 +691,19 @@
689691
"linux": "meta+alt+q"
690692
},
691693
{
692-
"command": "aws.codeWhisperer",
694+
"command": "aws.amazonq.invokeInlineCompletion",
693695
"key": "alt+c",
694696
"mac": "alt+c",
695697
"when": "editorTextFocus && aws.codewhisperer.connected || isCloud9 && editorTextFocus"
696698
},
697699
{
698-
"command": "aws.codeWhisperer.rejectCodeSuggestion",
700+
"command": "aws.amazonq.rejectCodeSuggestion",
699701
"key": "escape",
700702
"mac": "escape",
701703
"when": "inlineSuggestionVisible && !editorReadonly && aws.codewhisperer.connected || isCloud9 && suggestWidgetVisible && !editorReadonly"
702704
},
703705
{
704-
"command": "aws.codeWhisperer.dismissTutorial",
706+
"command": "aws.amazonq.dismissTutorial",
705707
"key": "escape",
706708
"mac": "escape",
707709
"when": "aws.codewhisperer.tutorial.workInProgress && !inlineSuggestionVisible && !suggestWidgetVisible"

0 commit comments

Comments
 (0)