package linol-lwt

  1. Overview
  2. Docs
type json = Yojson.Safe.t
type t

A jsonrpc2 connection.

include sig ... end
module Position = Lsp.Types.Position
module Range = Lsp.Types.Range
class virtual base_server : object ... end
class notify_back : notify_back:(Lsp.Server_notification.t -> unit IO.t) -> ?version:int -> uri:Lsp.Types.DocumentUri.t -> unit -> object ... end
type doc_state = Linol.Make(IO).doc_state = {
  1. uri : Lsp.Types.DocumentUri.t;
  2. languageId : string;
  3. version : int;
  4. content : string;
}
class virtual server : object ... end
val create : ic:IO.in_channel -> oc:IO.out_channel -> server -> t

Create a connection from the pair of channels

val create_stdio : server -> t
val run : t -> unit Task.t -> unit Task.m

Listen for incoming messages and responses

OCaml

Innovation. Community. Security.