Skip to content

Commit

Permalink
Debugging parse error quickfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtetley committed Jun 14, 2024
1 parent fff1e34 commit 4f02001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions language-server/dm/documentManager.ml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ let mk_diag st (id,(lvl,oloc,msg)) =
let mk_error_diag st (id,(oloc,msg,qf)) = (* mk_diag st (id,(Feedback.Error,oloc, msg)) *)
let code =
match qf with
| None -> None
| Some qf ->
| None -> log "NO ERROR QUICKFIX"; None
| Some qf -> log "ERROR QUICKFIX";
let code : Jsonrpc.Id.t * Lsp.Import.Json.t =
let open Lsp.Import.Json in
(`String "quickfix-replace",
Expand All @@ -209,8 +209,8 @@ let mk_parsing_error_diag st Document.{ msg = (oloc,msg); start; stop; qf } =
let range = Range.{ start; end_ } in
let code =
match qf with
| None -> None
| Some qf ->
| None -> log "NO PARSING ERROR QUICKFIX"; None
| Some qf -> log "PARSING ERROR QUICKFIX";
let code : Jsonrpc.Id.t * Lsp.Import.Json.t =
let open Lsp.Import.Json in
(`String "quickfix-replace",
Expand Down

0 comments on commit 4f02001

Please sign in to comment.