package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

* This encodes LSP RPC state machine.

include module type of Rpc.Server
include Rpc.S with type 'a out_request = 'a Server_request.t and type out_notification = Server_notification.t and type 'a in_request = 'a Client_request.t and type in_notification = Client_notification.t
type 'a out_request = 'a Server_request.t
type out_notification = Server_notification.t
type 'a in_request = 'a Client_request.t
type in_notification = Client_notification.t
type 'state t
module Handler : sig ... end
val state : 'a t -> 'a
val make : 'state Handler.t -> Rpc.Stream_io.t -> 'state -> 'state t
val stop : 'state t -> unit Import.Fiber.t
val request : _ t -> 'resp out_request -> ('resp, Jsonrpc.Response.Error.t) result Import.Fiber.t
val notification : _ t -> out_notification -> unit Import.Fiber.t
val start : _ t -> unit Import.Fiber.t
OCaml

Innovation. Community. Security.