mirror of
https://github.com/c-cube/linol.git
synced 2025-12-06 03:05:31 -05:00
fix compilation
This commit is contained in:
parent
754ecac307
commit
8ec409dda0
2 changed files with 3 additions and 3 deletions
|
|
@ -167,7 +167,7 @@ module Make(IO : IO)
|
|||
IO.catch f
|
||||
(fun e ->
|
||||
let message = spf "%s\n%s" (Printexc.to_string e) (Printexc.get_backtrace()) in
|
||||
Log.err (fun k->k "error: %s" msg);
|
||||
Log.err (fun k->k "error: %s" message);
|
||||
let r = Jsonrpc.Response.error id
|
||||
(Jsonrpc.Response.Error.make
|
||||
~code:Jsonrpc.Response.Error.Code.InternalError
|
||||
|
|
@ -220,7 +220,7 @@ module Make(IO : IO)
|
|||
end)
|
||||
(fun e ->
|
||||
let message = spf "%s\n%s" (Printexc.to_string e) (Printexc.get_backtrace()) in
|
||||
Log.err (fun k->k "error: %s" msg);
|
||||
Log.err (fun k->k "error: %s" message);
|
||||
let r =
|
||||
Jsonrpc.Response.error id
|
||||
(Jsonrpc.Response.Error.make
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ module Make(IO : IO) = struct
|
|||
| None ->
|
||||
(* WTF vscode. Well let's try and deal with it. *)
|
||||
Log.err (fun k->k "unknown document: '%s'" doc.uri);
|
||||
let version = CCOpt.get_or ~default:0 doc.version in
|
||||
let version = match doc.version with Some x->x | None -> 0 in
|
||||
|
||||
let languageId = "" in (* FIXME*)
|
||||
Lsp.Text_document.make
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue