File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ module Notification = struct
60
60
| InterpretToPoint of InterpretToPointParams .t
61
61
| StepForward of StepForwardParams .t
62
62
| StepBackward of StepBackwardParams .t
63
+ | Interrupt
63
64
64
65
let of_jsonrpc (Jsonrpc.Notification. { method_; params } as notif ) =
65
66
let open Lsp.Import.Result.O in
@@ -76,6 +77,7 @@ module Notification = struct
76
77
| "vscoq/interpretToEnd" ->
77
78
let + params = Lsp.Import.Json. message_params params InterpretToEndParams. t_of_yojson in
78
79
InterpretToEnd params
80
+ | "vscoq/interrupt" -> Ok Interrupt
79
81
| _ ->
80
82
let + notif = Lsp.Client_notification. of_jsonrpc notif in
81
83
Std notif
Original file line number Diff line number Diff line change @@ -535,6 +535,8 @@ let workspaceDidChangeConfiguration params =
535
535
| Continuous -> run_documents ()
536
536
| Manual -> reset_observe_ids () ; ([] : events )
537
537
538
+ let handle_interrupt () = []
539
+
538
540
let dispatch_std_request : type a. Jsonrpc.Id.t -> a Lsp.Client_request.t -> (a, error) result * events =
539
541
fun id req ->
540
542
match req with
@@ -590,6 +592,7 @@ let dispatch_notification =
590
592
| InterpretToEnd params -> log (fun () -> " Received notification: vscoq/interpretToEnd" ); coqtopInterpretToEnd params
591
593
| StepBackward params -> log (fun () -> " Received notification: vscoq/stepBackward" ); coqtopStepBackward params
592
594
| StepForward params -> log (fun () -> " Received notification: vscoq/stepForward" ); coqtopStepForward params
595
+ | Interrupt -> log (fun () -> " Received notification: vscoq/interrupt" ); handle_interrupt ()
593
596
| Std notif -> dispatch_std_notification notif
594
597
595
598
let handle_lsp_event = function
You can’t perform that action at this time.
0 commit comments