proper thread context for "isabelle-markup" Sidekick parser (amending 01a7265db76b);
authorwenzelm
Sun, 08 Oct 2023 15:12:59 +0200
changeset 78739 08fedb5bdeb0
parent 78738 323eecf508b4
child 78740 45ff003d337c
proper thread context for "isabelle-markup" Sidekick parser (amending 01a7265db76b);
src/Tools/jEdit/jedit_main/isabelle_sidekick.scala
--- a/src/Tools/jEdit/jedit_main/isabelle_sidekick.scala	Sun Oct 08 15:02:01 2023 +0200
+++ b/src/Tools/jEdit/jedit_main/isabelle_sidekick.scala	Sun Oct 08 15:12:59 2023 +0200
@@ -176,7 +176,8 @@
   override def parser(buffer: Buffer, syntax: Outer_Syntax, data: SideKickParsedData): Boolean = {
     val opt_snapshot =
       Document_Model.get_model(buffer) match {
-        case Some(model) if model.is_theory => Some(Document_Model.snapshot(model))
+        case Some(model) if model.is_theory =>
+          GUI_Thread.now { Some(Document_Model.snapshot(model)) }
         case _ => None
       }
     opt_snapshot match {