Skip to content

Commit 2eca5a7

Browse files
authored
telemetry(amazonq): Aligning telemetry strings in VSC and JB. (aws#5382)
* Adding truncation logic to testGen user prompt * Adding change log * Updating telemetry error message to align VSC and JB * Removing unwanted files
1 parent 3ef26d8 commit 2eca5a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class CodeWhispererUTGChatManager(val project: Project, private val cs: Coroutin
297297
// TODO: Modify text according to FnF
298298
codeTestChatHelper.addAnswer(
299299
CodeTestChatMessageContent(
300-
message = message("testgen.message.failed"),
300+
message = message("testgen.error.generic_technical_error_message"),
301301
type = ChatMessageType.Answer,
302302
canBeVoted = true
303303
)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ testgen.error.generic_error_message=Amazon Q encountered an error while generati
20682068
testgen.error.generic_technical_error_message=I am experiencing technical difficulties at the moment. Please try again in a few minutes.
20692069
testgen.error.maximum_generations_reach=You've reached the monthly quota for Amazon Q Developer's agent capabilities. You can try again next month. For more information on usage limits, see the <a href=\"https://aws.amazon.com/q/developer/pricing/\" target=\"_blank\">Amazon Q Developer pricing page</a>.
20702070
testgen.message.cancelled=Unit test generation cancelled.
2071-
testgen.message.failed=Sorry, Test generation failed. Please try again in few minutes.
2071+
testgen.message.failed=Test generation failed
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.

0 commit comments

Comments
 (0)