package coq-lsp

  1. Overview
  2. Docs

JSON-RPC input/output

val read_raw_request : Stdlib.in_channel -> Yojson.Safe.t option

Read a JSON-RPC request from channel

val read_request : Stdlib.in_channel -> Base.Message.t option

None signals EOF

exception ReadError of string
val send_json : Stdlib.Format.formatter -> Yojson.Safe.t -> unit

Send a JSON-RPC request to channel

Logging

module TraceValue : sig ... end

Trace values

val set_trace_value : TraceValue.t -> unit

Set the trace value

val set_log_channel : Stdlib.Format.formatter -> unit

Set the log channel

val logMessage : lvl:int -> message:string -> unit

Send a window/logMessage notification to the client

val logTrace : message:string -> extra:string option -> unit

Send a $/logTrace notification to the client

val trace : string -> ?extra:string -> string -> unit

log hdr ?extra message Log message to server info log with header hdr. extra will be used when trace_value is set to Verbose

val trace_object : string -> Yojson.Safe.t -> unit

Log JSON object to server info log

OCaml

Innovation. Community. Security.