Skip to content

Commit

Permalink
Fix #525
Browse files Browse the repository at this point in the history
  • Loading branch information
alex999990009 committed Jul 5, 2024
1 parent 4648b84 commit 67aeb20
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/kotlin/org/arend/highlight/BasePass.kt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,19 @@ abstract class BasePass(protected open val file: IArendFile, editor: Editor, nam
return HighlightInfo.newHighlightInfo(type ?: levelToHighlightInfoType(error.level))
.range(range)
.severity(levelToSeverity(error.level))
.description(error.shortMessage)
.description(
run {
var message: String? = null
ApplicationManager.getApplication().run {
executeOnPooledThread {
runReadAction {
message = error.shortMessage
}
}.get()
}
message ?: ""
}
)
.escapedToolTip(XmlStringUtil.escapeString(DocStringBuilder.build(vHang(error.getShortHeaderDoc(ppConfig), error.getBodyDoc(ppConfig)))).replace("\n", "<br>"))
}

Expand Down

0 comments on commit 67aeb20

Please sign in to comment.