Skip to content

Commit 048f464

Browse files
committed
Restore generate test right click action
1 parent e47fd89 commit 048f464

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

plugins/amazonq/chat/jetbrains-community/resources/META-INF/plugin-chat.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
<keyboard-shortcut keymap="$default" first-keystroke="meta alt A" />
7373
</action>
7474

75+
<action id="aws.toolkit.jetbrains.core.services.cwc.commands.GenerateUnitTestsAction"
76+
class="software.aws.toolkits.jetbrains.services.cwc.commands.GenerateUnitTestsAction">
77+
<keyboard-shortcut keymap="$default" first-keystroke="meta alt T" />
78+
</action>
79+
7580
<action id="aws.toolkit.jetbrains.core.services.cwc.commands.SendToPromptAction"
7681
class="software.aws.toolkits.jetbrains.services.cwc.commands.SendToPromptAction">
7782
<keyboard-shortcut keymap="$default" first-keystroke="meta alt S" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package software.aws.toolkits.jetbrains.services.cwc.commands
5+
6+
class GenerateUnitTestsAction : CustomAction(EditorContextCommand.GenerateUnitTests)

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ action.aws.toolkit.jetbrains.core.services.cwc.commands.ExplainCodeAction.descri
2020
action.aws.toolkit.jetbrains.core.services.cwc.commands.ExplainCodeAction.text=Explain Code
2121
action.aws.toolkit.jetbrains.core.services.cwc.commands.FixCodeAction.description=Fixes the selected code
2222
action.aws.toolkit.jetbrains.core.services.cwc.commands.FixCodeAction.text=Fix Code
23+
action.aws.toolkit.jetbrains.core.services.cwc.commands.GenerateUnitTestsAction.description=Generates unit tests for the selected code
24+
action.aws.toolkit.jetbrains.core.services.cwc.commands.GenerateUnitTestsAction.text=Generate Tests
2325
action.aws.toolkit.jetbrains.core.services.cwc.commands.OptimizeCodeAction.description=Optimizes the selected code
2426
action.aws.toolkit.jetbrains.core.services.cwc.commands.OptimizeCodeAction.text=Optimize Code
2527
action.aws.toolkit.jetbrains.core.services.cwc.commands.RefactorCodeAction.description=Refactors the selected code

0 commit comments

Comments
 (0)