Skip to content

Commit 77c6e53

Browse files
committed
feedback
1 parent fb47aab commit 77c6e53

File tree

1 file changed

+3
-3
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/codescan/actions

1 file changed

+3
-3
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/codescan/actions/ExplainCodeIssueAction.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class ExplainCodeIssueAction : AnAction(), DumbAware {
2929
// https://github.com/aws/aws-toolkit-vscode/blob/master/packages/amazonq/src/lsp/chat/commands.ts#L30
3030
val codeSelection = "\n```\n${issueContext["code"]?.trimIndent()?.trim()}\n```\n"
3131

32-
val prompt = "Explain the following part of my code \n\n " +
32+
val prompt = "Explain the issue \n\n " +
3333
"Issue: \"${issueContext["title"]}\" \n" +
3434
"Code: $codeSelection"
3535

36-
val modelPrompt = "Explain the following part of my code \n\n " +
36+
val modelPrompt = "Explain the issue ${issueContext["title"]} \n\n " +
3737
"Issue: \"${issueContext["title"]}\" \n" +
3838
"Description: ${issueContext["description"]} \n" +
39-
"Code: $codeSelection and generate code demonstrating the fix"
39+
"Code: $codeSelection and generate the code demonstrating the fix"
4040

4141
val params = SendToPromptParams(
4242
selection = codeSelection,

0 commit comments

Comments
 (0)