Skip to content

Commit

Permalink
wip: make rename project wide
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Jan 29, 2024
1 parent ba1d99a commit 7105c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/ocaml_lsp_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ let on_request :
let+ locs, _desync =
Document.Merlin.dispatch_exn
doc
(Occurrences (`Ident_at (Position.logical position), `Buffer))
(Occurrences (`Ident_at (Position.logical position), `Project))
in
let loc =
List.find_opt locs ~f:(fun loc ->
Expand Down
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/rename.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let rename (state : State.t)
| `Other -> Fiber.return (WorkspaceEdit.create ())
| `Merlin merlin ->
let command =
Query_protocol.Occurrences (`Ident_at (Position.logical position), `Buffer)
Query_protocol.Occurrences (`Ident_at (Position.logical position), `Project)
in
let+ locs, _desync = Document.Merlin.dispatch_exn merlin command in
let version = Document.version doc in
Expand Down

0 comments on commit 7105c12

Please sign in to comment.