Skip to content

Commit ce0f8f3

Browse files
Fix bug in t_of_yojson for merlin call compatible request params
1 parent 1628871 commit ce0f8f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml-lsp-server/src/custom_requests/req_merlin_call_compatible.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ module Request_params = struct
7070
let result_as_sexp = json |> member "resultAsSexp" |> to_bool in
7171
let command = json |> member "command" |> to_string in
7272
let args = args_of_yojson json in
73-
let text_document = TextDocumentIdentifier.t_of_yojson json in
73+
let text_document =
74+
json |> member "textDocument" |> TextDocumentIdentifier.t_of_yojson
75+
in
7476
{ text_document; result_as_sexp; command; args }
7577
;;
7678

0 commit comments

Comments
 (0)