linol/ocaml-lsp-server/test/e2e-new/code_actions.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

23 lines
561 B
OCaml

open Test.Import
val iter_code_actions
: ?prep:(unit Test.Import.Client.t -> unit Fiber.t)
-> ?path:string
-> ?diagnostics:Diagnostic.t list
-> source:string
-> Range.t
-> (CodeActionResult.t -> unit)
-> unit
val parse_selection : string -> string * Range.t
val apply_code_action
: ?diagnostics:Diagnostic.t list
-> string
-> string
-> Range.t
-> string option
(** [code_action_test title source] runs the code action with title [title] and
prints the resulting source. *)
val code_action_test : title:string -> string -> unit