src/Tools/VSCode/src/lsp.scala
changeset 81028 84f6f17274d0
parent 81026 c4bc259393f6
child 81029 f4cb1e35c63e
--- a/src/Tools/VSCode/src/lsp.scala	Wed May 01 19:09:26 2024 +0200
+++ b/src/Tools/VSCode/src/lsp.scala	Mon Jul 01 18:48:26 2024 +0200
@@ -533,11 +533,6 @@
         JSON.Object("id" -> id, "content" -> content, "auto_update" -> auto_update))
   }
 
-  object State_Init_Response {
-    def apply(id: Counter.ID): JSON.T =
-      Notification("PIDE/state_init_response", JSON.Object("id" -> id))
-  }
-
   class State_Id_Notification(name: String) {
     def unapply(json: JSON.T): Option[Counter.ID] =
       json match {
@@ -546,7 +541,11 @@
       }
   }
 
-  object State_Init extends Notification0("PIDE/state_init")
+  object State_Init extends Request0("PIDE/state_init") {
+    def reply(id: Id, state_id: Counter.ID): JSON.T =
+      ResponseMessage(id, Some(JSON.Object("state_id" -> state_id)))
+  }
+
   object State_Exit extends State_Id_Notification("PIDE/state_exit")
   object State_Locate extends State_Id_Notification("PIDE/state_locate")
   object State_Update extends State_Id_Notification("PIDE/state_update")