Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include sig ... end
module Req_id : sig ... end
type server_request_handler_pair =
| Request_and_handler : 'from_server Lsp.Server_request.t
* (('from_server, Jsonrpc.Response.Error.t) Stdlib.result ->
unit IO.t) -> server_request_handler_pair
type send_request = server_request_handler_pair -> Req_id.t IO.t
class virtual base_server : object ... end
val async : base_server -> (unit -> unit IO.t) -> unit IO.t
class 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
class virtual server : object ... end
val create :
?on_received:(json -> unit) ->
?on_sent:(json -> unit) ->
ic:IO.in_channel ->
oc:IO.out_channel ->
server ->
t
Create a connection from the pair of channels
val create_stdio :
?on_received:(json -> unit) ->
?on_sent:(json -> unit) ->
env:IO.env ->
server ->
t
Create a connection using stdin/stdout
Send a notification from the server.