mirror of
https://github.com/c-cube/linol.git
synced 2025-12-06 11:15:46 -05:00
feat: allow to set the URI in notify_back
This commit is contained in:
parent
d5b0159aa9
commit
e5cb0a331b
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ module Make(IO : IO) = struct
|
|||
|
||||
(** A wrapper to more easily reply to notifications *)
|
||||
class notify_back ~notify_back ?version ?(uri:DocumentUri.t option) () = object
|
||||
val mutable uri = uri
|
||||
method set_uri u = uri <- Some u
|
||||
|
||||
(** Send a log message to the editor *)
|
||||
method send_log_msg ~type_ msg : unit IO.t =
|
||||
let params = ShowMessageParams.create ~type_ ~message:msg in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue