Skip to content

Commit 1b6a0ea

Browse files
committed
Rename request name
1 parent 4e919dd commit 1b6a0ea

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

ocaml-lsp-server/docs/ocamllsp/jumpTypedHoles-spec.md renamed to ocaml-lsp-server/docs/ocamllsp/jumpToTypedHoles-spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ nothing that should be noted
2727

2828
## Server capability
2929

30-
- property name: `handleJumpTypedHole`
30+
- property name: `handleToJumpTypedHole`
3131
- property type: `boolean`
3232

3333
## Request
3434

35-
- method: `ocamllsp/jumpTypedHole`
35+
- method: `ocamllsp/jumpToTypedHole`
3636
- params:
3737

3838
```json

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module Infer_intf = Req_infer_intf
44
module Merlin_call_compatible = Req_merlin_call_compatible
55
module Switch_impl_intf = Req_switch_impl_intf
66
module Typed_holes = Req_typed_holes
7+
module Jump_to_typed_hole = Req_jump_to_typed_hole
78
module Type_enclosing = Req_type_enclosing
89
module Wrapping_ast_node = Req_wrapping_ast_node
910
module Get_documentation = Req_get_documentation
1011
module Type_search = Req_type_search
1112
module Merlin_jump = Req_merlin_jump
12-
module Jump_typed_hole = Req_jump_typed_hole

ocaml-lsp-server/src/custom_requests/custom_request.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ module Infer_intf = Req_infer_intf
66
module Merlin_call_compatible = Req_merlin_call_compatible
77
module Switch_impl_intf = Req_switch_impl_intf
88
module Typed_holes = Req_typed_holes
9+
module Jump_to_typed_hole = Req_jump_to_typed_hole
910
module Type_enclosing = Req_type_enclosing
1011
module Wrapping_ast_node = Req_wrapping_ast_node
1112
module Get_documentation = Req_get_documentation
1213
module Type_search = Req_type_search
1314
module Merlin_jump = Req_merlin_jump
14-
module Jump_typed_hole = Req_jump_typed_hole

ocaml-lsp-server/src/custom_requests/req_jump_typed_hole.ml renamed to ocaml-lsp-server/src/custom_requests/req_jump_to_typed_hole.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
open Import
22

3-
let capability = "handleJumpTypedHole", `Bool true
4-
let meth = "ocamllsp/jumpTypedHole"
3+
let capability = "handleJumpToTypedHole", `Bool true
4+
let meth = "ocamllsp/jumpToTypedHole"
55

66
module Request_params = struct
77
type t =

ocaml-lsp-server/src/ocaml_lsp_server.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let initialize_info (client_capabilities : ClientCapabilities.t) : InitializeRes
8989
; Req_switch_impl_intf.capability
9090
; Req_infer_intf.capability
9191
; Req_typed_holes.capability
92-
; Req_jump_typed_hole.capability
92+
; Req_jump_to_typed_hole.capability
9393
; Req_wrapping_ast_node.capability
9494
; Dune.view_promotion_capability
9595
; Req_hover_extended.capability
@@ -529,7 +529,7 @@ let on_request
529529
Fiber.return (Req_switch_impl_intf.on_request ~params state)) )
530530
; Req_infer_intf.meth, Req_infer_intf.on_request
531531
; Req_typed_holes.meth, Req_typed_holes.on_request
532-
; Req_jump_typed_hole.meth, Req_jump_typed_hole.on_request
532+
; Req_jump_to_typed_hole.meth, Req_jump_to_typed_hole.on_request
533533
; Req_merlin_call_compatible.meth, Req_merlin_call_compatible.on_request
534534
; Req_type_enclosing.meth, Req_type_enclosing.on_request
535535
; Req_get_documentation.meth, Req_get_documentation.on_request

ocaml-lsp-server/test/e2e-new/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
for_ppx
5454
hover_extended
5555
inlay_hints
56-
jump_typed_hole
56+
jump_to_typed_hole
5757
merlin_call_compatible
5858
metrics
5959
semantic_hl_data

ocaml-lsp-server/test/e2e-new/jump_typed_hole.ml renamed to ocaml-lsp-server/test/e2e-new/jump_to_typed_hole.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
open Test.Import
2-
module Req = Ocaml_lsp_server.Custom_request.Jump_typed_hole
2+
module Req = Ocaml_lsp_server.Custom_request.Jump_to_typed_hole
33

44
module Util = struct
55
let call ?direction ?range ~position client =

ocaml-lsp-server/test/e2e-new/start_stop.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ let%expect_test "start/stop" =
8787
"handleSwitchImplIntf": true,
8888
"handleInferIntf": true,
8989
"handleTypedHoles": true,
90-
"handleJumpTypedHole": true,
90+
"handleJumpToTypedHole": true,
9191
"handleWrappingAstNode": true,
9292
"diagnostic_promotions": true,
9393
"handleHoverExtended": true,

0 commit comments

Comments
 (0)