package lsp

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

IO free implementation of the jsonrpc protocol. We stay completely agnostic of transport by only dealing with abstract jsonrpc packets

Parameters

module Chan : sig ... end

Signature

type 'state t
module Context : sig ... end
val create : ?on_request: (('state, Id.t) Context.t -> (Response.t * 'state) Import.Fiber.t) -> ?on_notification: (('state, unit) Context.t -> (Notify.t * 'state) Import.Fiber.t) -> name:string -> Chan.t -> 'state -> 'state t
val state : 'a t -> 'a
val stop : _ t -> unit Import.Fiber.t
val stopped : _ t -> unit Import.Fiber.t
val run : _ t -> unit Import.Fiber.t
val notification : _ t -> Message.notification -> unit Import.Fiber.t
OCaml

Innovation. Community. Security.