Skip to content

Commit 0ab6d04

Browse files
fix(amazonq): /test align placeholder text across IDEs (#5321)
* align placeholder text across IDEs * Update description --------- Co-authored-by: invictus <[email protected]>
1 parent 5fa889b commit 0ab6d04

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "/test placeholder text aligned across IDEs"
4+
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/CodeWhispererUTGChatManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
585585
codeTestChatHelper.deleteSession(session.tabId)
586586
codeTestChatHelper.updateUI(
587587
promptInputDisabledState = false,
588-
promptInputPlaceholder = message("testgen.placeholder.newtab"),
588+
promptInputPlaceholder = message("testgen.placeholder.enter_slash_quick_actions"),
589589
)
590590
}
591591
session.isGeneratingTests = false

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ class CodeTestChatController(
627627
sessionCleanUp(session.tabId)
628628
codeTestChatHelper.updateUI(
629629
promptInputDisabledState = false,
630-
promptInputPlaceholder = message("testgen.placeholder.waiting_on_your_inputs"),
630+
promptInputPlaceholder = message("testgen.placeholder.enter_slash_quick_actions"),
631631
)
632632
/*
633633
val taskContext = session.buildAndExecuteTaskContext
@@ -1004,7 +1004,7 @@ class CodeTestChatController(
10041004
codeTestChatHelper.updateUI(
10051005
promptInputDisabledState = false
10061006
)
1007-
codeTestChatHelper.sendUpdatePlaceholder(tabId, message("testgen.placeholder.newtab"))
1007+
codeTestChatHelper.sendUpdatePlaceholder(tabId, message("testgen.placeholder.enter_slash_quick_actions"))
10081008
}
10091009

10101010
private fun openOrCreateTestFileAndApplyDiff(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,7 @@ testgen.message.failed=Sorry, Test generation failed. Please try again in few mi
20722072
testgen.message.regenerate_input=Sure thing. Please provide new instructions for me to generate the tests, and select the function(s) you would like to test.
20732073
testgen.message.success=Unit test generation completed.
20742074
testgen.no_file_found=Sorry, there isn't a source file open right now that I can generate a test for. Make sure you open a source file so I can generate tests.
2075+
testgen.placeholder.enter_slash_quick_actions=Enter "/" for quick actions
20752076
testgen.placeholder.newtab=Ask any coding question or type \u0022/\u0022 for actions
20762077
testgen.placeholder.select_an_option = Please select an action to proceed (Accept or Reject)
20772078
testgen.placeholder.view_diff=Select View Diff to see the generated unit tests

0 commit comments

Comments
 (0)