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/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/listeners/CodeWhispererCodeScanDocumentListener.kt
Copy file name to clipboardExpand all lines: plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/listeners/CodeWhispererCodeScanEditorMouseMotionListener.kt
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -361,11 +361,7 @@ class CodeWhispererCodeScanEditorMouseMotionListener(private val project: Projec
361
361
return
362
362
}
363
363
val offset = e.offset
364
-
val file =FileDocumentManager.getInstance().getFile(e.editor.document)
365
-
if (file ==null) {
366
-
LOG.error { "Cannot find file for the document ${e.editor.document}" }
367
-
return
368
-
}
364
+
val file =FileDocumentManager.getInstance().getFile(e.editor.document) ?:return
369
365
val issuesInRange = scanManager.getScanNodesInRange(file, offset).map {
0 commit comments