src/Pure/PIDE/session.scala
changeset 72721 79f5e843e5ec
parent 72692 22aeec526ffd
child 72816 ea4f86914cb2
--- a/src/Pure/PIDE/session.scala	Thu Nov 26 15:18:09 2020 +0100
+++ b/src/Pure/PIDE/session.scala	Thu Nov 26 15:49:27 2020 +0100
@@ -181,7 +181,7 @@
 
   /* outlets */
 
-  val finished_theories = new Session.Outlet[Command.State](dispatcher)
+  val finished_theories = new Session.Outlet[Document.Snapshot](dispatcher)
   val command_timings = new Session.Outlet[Session.Command_Timing](dispatcher)
   val theory_timings = new Session.Outlet[Session.Theory_Timing](dispatcher)
   val runtime_statistics = new Session.Outlet[Session.Runtime_Statistics](dispatcher)
@@ -511,8 +511,8 @@
 
               case Markup.Finished_Theory(theory) =>
                 try {
-                  val st = global_state.change_result(_.end_theory(theory))
-                  finished_theories.post(st)
+                  val snapshot = global_state.change_result(_.end_theory(theory))
+                  finished_theories.post(snapshot)
                 }
                 catch { case _: Document.State.Fail => bad_output() }