Skip to content

Commit

Permalink
fix(amazonq): /test align placeholder text across IDEs (#5321)
Browse files Browse the repository at this point in the history
* align placeholder text across IDEs

* Update description

---------

Co-authored-by: invictus <[email protected]>
  • Loading branch information
chungjac and ashishrp-aws authored Feb 4, 2025
1 parent 5fa889b commit 0ab6d04
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "/test placeholder text aligned across IDEs"
}
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
codeTestChatHelper.deleteSession(session.tabId)
codeTestChatHelper.updateUI(
promptInputDisabledState = false,
promptInputPlaceholder = message("testgen.placeholder.newtab"),
promptInputPlaceholder = message("testgen.placeholder.enter_slash_quick_actions"),
)
}
session.isGeneratingTests = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ class CodeTestChatController(
sessionCleanUp(session.tabId)
codeTestChatHelper.updateUI(
promptInputDisabledState = false,
promptInputPlaceholder = message("testgen.placeholder.waiting_on_your_inputs"),
promptInputPlaceholder = message("testgen.placeholder.enter_slash_quick_actions"),
)
/*
val taskContext = session.buildAndExecuteTaskContext
Expand Down Expand Up @@ -1004,7 +1004,7 @@ class CodeTestChatController(
codeTestChatHelper.updateUI(
promptInputDisabledState = false
)
codeTestChatHelper.sendUpdatePlaceholder(tabId, message("testgen.placeholder.newtab"))
codeTestChatHelper.sendUpdatePlaceholder(tabId, message("testgen.placeholder.enter_slash_quick_actions"))
}

private fun openOrCreateTestFileAndApplyDiff(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2072,6 +2072,7 @@ testgen.message.failed=Sorry, Test generation failed. Please try again in few mi
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.
testgen.message.success=Unit test generation completed.
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.
testgen.placeholder.enter_slash_quick_actions=Enter "/" for quick actions
testgen.placeholder.newtab=Ask any coding question or type \u0022/\u0022 for actions
testgen.placeholder.select_an_option = Please select an action to proceed (Accept or Reject)
testgen.placeholder.view_diff=Select View Diff to see the generated unit tests
Expand Down

0 comments on commit 0ab6d04

Please sign in to comment.