package coq-lsp

  1. Overview
  2. Docs
Language Server Protocol native server for Coq

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.1.7.8.18.tbz
sha256=c68fcee8101b40a1706c74ce2ca0386311aebb79ec1a96032fb51bc8b981314f
sha512=720ca5ba4f265d942232e8c2a85bd475f03bf7a592e1b9d6dfbd8c68689275ef2224b82310578bf430ad6b192ba5430ab11a62ef2524e3859c157a9680ac391b

doc/coq-lsp.lsp/Lsp/Io/index.html

Module Lsp.IoSource

JSON-RPC input/output

Sourceval set_log_fn : (Yojson.Safe.t -> unit) -> unit

Set the log function

Sourceval read_raw_request : in_channel -> Yojson.Safe.t option

Read a JSON-RPC request from channel

Sourceval read_request : in_channel -> Base.Message.t option

None signals EOF

Sourceexception ReadError of string
Sourceval send_json : Format.formatter -> Yojson.Safe.t -> unit

Send a JSON-RPC request to channel

Logging

Sourcemodule TraceValue : sig ... end

Trace values

Sourceval set_trace_value : TraceValue.t -> unit

Set the trace value

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

Send a window/logMessage notification to the client

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

Send a $/logTrace notification to the client

Sourceval 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

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

Log JSON object to server info log

OCaml

Innovation. Community. Security.