linol/ocaml-lsp-server/test/e2e-new/lsp_helpers.mli
Simon Cruanes 7fbc187548 Squashed 'thirdparty/lsp/' content from commit aae69863
git-subtree-dir: thirdparty/lsp
git-subtree-split: aae6986391a8519de3da6a7a341f2bd3376e0d2f
2025-04-10 15:44:25 -04:00

22 lines
696 B
OCaml

open Test.Import
(** Send the given configuration to the language server *)
val change_config : client:'a Client.t -> DidChangeConfigurationParams.t -> unit Fiber.t
(** Opens a document with the language server. This must be done before trying
to access it *)
val open_document
: client:'a Client.t
-> uri:DocumentUri.t
-> source:string
-> unit Fiber.t
(** Performs the request you return from the makeRequest function and then gives
it the the handler function you provide *)
val iter_lsp_response
: ?prep:(unit Client.t -> unit Fiber.t)
-> ?path:string
-> makeRequest:(TextDocumentIdentifier.t -> 'a Client.out_request)
-> source:string
-> ('a -> unit)
-> unit