package coq-lsp

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.1.9.8.18.tbz
sha256=99514bcbf82318b9ff857656f4ec1f87bb46f1c699a4f1e9fb06f5fcdd8d8839
sha512=fa4593a2ae416e554869a879da5d35a1d33efa5cc8743f77c05373875ecea267019989dec600d5e880d909aea97ce7f6990ac59e58aabce358e3693b0764bef8

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_message : in_channel -> (Yojson.Safe.t, string) Result.t option

Read a JSON-RPC message from channel

Sourceval read_message : in_channel -> (Base.Message.t, string) Result.t option

None signals EOF

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

Sourcemodule Lvl : sig ... end
Sourceval logMessage : lvl:Lvl.t -> message:string -> unit

Send a window/logMessage notification to the client

Sourceval logMessageInt : 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.