Skip to content

Commit b6a5ccb

Browse files
committed
add support for "find references" rpc action
1 parent 9ca0352 commit b6a5ccb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

phpactor.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,17 @@ function."
617617
(let ((arguments (phpactor--command-argments :source :path)))
618618
(apply #'phpactor-action-dispatch (phpactor--rpc "transform" (append arguments (list :transform "implement_contracts"))))))
619619

620+
;;;###autoload
621+
(defun phpactor-find-references ()
622+
"Execute Phpactor PRC references action to find references."
623+
(interactive)
624+
(let ((arguments (phpactor--command-argments :source :path :offset)))
625+
(apply #'phpactor-action-dispatch (phpactor--rpc "references" arguments))
626+
(phpactor-list-references)))
627+
620628
;;;###autoload
621629
(defun phpactor-replace-references ()
622-
"Execute Phpactor PRC replace_references command to complete_constructor."
630+
"Execute Phpactor PRC references action command to replace references."
623631
(interactive)
624632
(let ((arguments (phpactor--command-argments :source :path :offset)))
625633
(apply #'phpactor-action-dispatch (phpactor--rpc "references" (append arguments (list :mode "replace"))))))

0 commit comments

Comments
 (0)