package linol

  1. Overview
  2. Docs

Module Jsonrpc2.MakeSource

Parameters

module IO : IO

Signature

Sourcemodule IO = IO
Sourcetype t

A jsonrpc2 connection.

include sig ... end
Sourcemodule Position = Lsp.Types.Position
Sourcemodule Range = Lsp.Types.Range
Sourcemodule Diagnostic = Lsp.Types.Diagnostic
Sourcemodule DiagnosticSeverity = Lsp.Types.DiagnosticSeverity
Sourceclass virtual base_server : object ... end
Sourceclass notify_back : notify_back:(Lsp.Server_notification.t -> unit IO.t) -> ?version:int -> uri:Lsp.Types.DocumentUri.t -> unit -> object ... end
Sourcetype nonrec doc_state = {
  1. uri : Lsp.Types.DocumentUri.t;
  2. languageId : string;
  3. version : int;
  4. content : string;
}
Sourceclass virtual server : object ... end
Sourceval create : ic:IO.in_channel -> oc:IO.out_channel -> server -> t

Create a connection from the pair of channels

Sourceval create_stdio : server -> t

Create a connection using stdin/stdout

Sourceval run : ?shutdown:(unit -> bool) -> t -> unit IO.t

Listen for incoming messages and responses.

  • parameter shutdown

    if true, tells the server to shut down

OCaml

Innovation. Community. Security.