You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -457,6 +457,10 @@ class CodeTestChatController(
457
457
when (message.actionID) {
458
458
"utg_view_diff"-> {
459
459
withContext(EDT) {
460
+
// virtual file only needed for syntax highlighting when viewing diff
461
+
val tempPath =Files.createTempFile(null, ".${session.testFileName.substringAfterLast('.')}")
462
+
val virtualFile = tempPath.toFile().toVirtualFile()
0 commit comments