Skip to content

Commit

Permalink
Fix #517
Browse files Browse the repository at this point in the history
  • Loading branch information
alex999990009 committed Jun 17, 2024
1 parent ef0e3ea commit 301a524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/org/arend/tracer/ArendSuspendContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class ArendSuspendContext(traceEntry: ArendTraceEntry, contextView: ArendTraceCo
}
}
val psiElement = getSourcePositionElement(traceEntry)
val psiText = psiElement?.text?.let(::shorten) ?: ArendBundle.message("arend.tracer.unknown.expression")
val psiText = runReadAction {
psiElement?.text?.let(::shorten) ?: ArendBundle.message("arend.tracer.unknown.expression")
}
component.append(psiText, SimpleTextAttributes.REGULAR_ATTRIBUTES)
setPositionText(component, positionComponents())
}
Expand Down

0 comments on commit 301a524

Please sign in to comment.