Skip to content

Commit 87f31ec

Browse files
committed
Rename name to pipeline_name
1 parent 12c06c5 commit 87f31ec

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed
File renamed without changes.

ocaml-lsp-server/src/custom_requests/req_jump_to_typed_hole.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ let on_request ~(params : Jsonrpc.Structured.t option) (state : State.t) =
7575
| Some doc ->
7676
let open Fiber.O in
7777
let merlin = Document.merlin_exn doc in
78-
let+ holes = Typed_hole.all ~name:"jump-to-typed-hole" merlin in
78+
let+ holes = Typed_hole.all ~pipeline_name:"jump-to-typed-hole" merlin in
7979
holes |> Typed_hole.find ~position ~range ~direction |> yojson_of_t
8080
| None ->
8181
Jsonrpc.Response.Error.raise

ocaml-lsp-server/src/custom_requests/req_typed_holes.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ let on_request ~(params : Jsonrpc.Structured.t option) (state : State.t) =
6969
(Uri.to_string uri))
7070
()
7171
| Some doc ->
72-
let+ holes = Typed_hole.all ~name:"typed-holes" (Document.merlin_exn doc) in
72+
let+ holes =
73+
Typed_hole.all ~pipeline_name:"typed-holes" (Document.merlin_exn doc)
74+
in
7375
yojson_of_t holes)
7476
;;

ocaml-lsp-server/src/typed_hole.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ let find ~range ~position ~direction holes =
4040
| `Next -> find_next ~range ~position holes
4141
;;
4242

43-
let all ?(name = "typed-holes") merlin =
43+
let all ?(pipeline_name = "typed-holes") merlin =
4444
Holes
45-
|> Document.Merlin.dispatch_exn ~name merlin
45+
|> Document.Merlin.dispatch_exn ~name:pipeline_name merlin
4646
|> Fiber.map ~f:(List.map ~f:(fun (loc, _ty) -> Range.of_loc loc))
4747
;;

ocaml-lsp-server/src/typed_hole.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ val find
55
-> Range.t list
66
-> Range.t option
77

8-
val all : ?name:string -> Document.Merlin.t -> Range.t list Fiber.t
8+
val all : ?pipeline_name:string -> Document.Merlin.t -> Range.t list Fiber.t

0 commit comments

Comments
 (0)