package linol-eio

  1. Overview
  2. Docs
LSP server library (with Eio for concurrency)

Install

Dune Dependency

Authors

Maintainers

Sources

linol-0.9.tbz
sha256=7f3ef80e73a69289589a906990f18de52ce4a46e6447b30aea77f87aae677e63
sha512=713340015bee1807cd39e76048d8b30d6d24a4f262e3dfaacfe8726b52e1f8f93c5184a50485cfa657ff0ee66a813c7ec8bc812580dec489a5b81051e3ddb0e6

doc/linol-eio/Linol_eio/Jsonrpc2/index.html

Module Linol_eio.Jsonrpc2Source

Sourcemodule IO : sig ... end
Sourcetype t
module Position = Lsp.Types.Position
module Range = Lsp.Types.Range
module Diagnostic = Lsp.Types.Diagnostic
module DiagnosticSeverity = Lsp.Types.DiagnosticSeverity
Sourcemodule Req_id : sig ... end

Request ID.

Sourcetype server_request_handler_pair =
  1. | Request_and_handler : 'from_server Lsp.Server_request.t * (('from_server, Jsonrpc.Response.Error.t) result -> unit IO.t) -> server_request_handler_pair
Sourceclass virtual base_server : object ... end
Sourceval async : base_server -> (unit -> unit IO.t) -> unit IO.t
Sourceclass notify_back : notify_back:(Lsp.Server_notification.t -> unit IO.t) -> server_request:(server_request_handler_pair -> Req_id.t IO.t) -> workDoneToken:Lsp__Types.ProgressToken.t option -> partialResultToken:'a -> ?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;
}
Sourceval lift_ok : 'a IO.t -> ('a, 'b) result IO.t
Sourceclass virtual server : object ... end
Sourceval create : ?on_received:(Yojson.Safe.t -> unit) -> ?on_sent:(Yojson.Safe.t -> unit) -> ic:IO.in_channel -> oc:IO.out_channel -> server -> t
Sourceval create_stdio : ?on_received:(Yojson.Safe.t -> unit) -> ?on_sent:(Yojson.Safe.t -> unit) -> env:IO.env -> server -> t
Sourceval send_server_notification : t -> Lsp.Server_notification.t -> unit IO.t
Sourceval send_server_request : t -> 'from_server Lsp.Server_request.t -> (('from_server, Jsonrpc.Response.Error.t) result -> unit IO.t) -> Req_id.t IO.t
Sourceval run : ?shutdown:(unit -> bool) -> t -> unit IO.t
OCaml

Innovation. Community. Security.