Skip to content

Commit 74b27eb

Browse files
authored
fix: move file name to description (#5195)
1 parent 5111b06 commit 74b27eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanResultsView.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,14 @@ internal class CodeWhispererCodeScanResultsView(private val project: Project, pr
358358
cell.icon = obj.fileType.icon
359359
}
360360
is CodeWhispererCodeScanIssue -> {
361-
val cellText = "${obj.title.trimEnd('.')}: ${obj.file.name} "
361+
val cellText = obj.title.trimEnd('.')
362+
val cellDescription = "${obj.file.name} ${obj.displayTextRange()}"
362363
if (obj.isInvalid) {
363-
cell.text = message("codewhisperer.codescan.scan_recommendation_invalid", obj.title, obj.displayTextRange(), INACTIVE_TEXT_COLOR)
364+
cell.text = message("codewhisperer.codescan.scan_recommendation_invalid", obj.title, cellDescription, INACTIVE_TEXT_COLOR)
364365
cell.toolTipText = message("codewhisperer.codescan.scan_recommendation_invalid.tooltip_text")
365366
cell.icon = AllIcons.General.Information
366367
} else {
367-
cell.text = message("codewhisperer.codescan.scan_recommendation", cellText, obj.displayTextRange(), INACTIVE_TEXT_COLOR)
368+
cell.text = message("codewhisperer.codescan.scan_recommendation", cellText, cellDescription, INACTIVE_TEXT_COLOR)
368369
cell.toolTipText = cellText
369370
cell.icon = obj.issueSeverity.icon
370371
}

0 commit comments

Comments
 (0)