clarified session name: treat PIDE session as Sessions.DRAFT with imports from other sessions;
authorwenzelm
Fri, 05 Aug 2022 13:34:47 +0200
changeset 75761 2a0051496844
parent 75760 f8be63d2ec6f
child 75762 985c3a64748c
clarified session name: treat PIDE session as Sessions.DRAFT with imports from other sessions;
src/Pure/PIDE/session.scala
--- a/src/Pure/PIDE/session.scala	Fri Aug 05 13:23:52 2022 +0200
+++ b/src/Pure/PIDE/session.scala	Fri Aug 05 13:34:47 2022 +0200
@@ -480,7 +480,7 @@
               case Protocol.Export(args)
               if args.id.isDefined && Value.Long.unapply(args.id.get).isDefined =>
                 val id = Value.Long.unapply(args.id.get).get
-                val entry = Export.make_entry("", args, msg.chunk, cache)
+                val entry = Export.make_entry(Sessions.DRAFT, args, msg.chunk, cache)
                 change_command(_.add_export(id, (args.serial, entry)))
 
               case Protocol.Loading_Theory(node_name, id) =>