Skip to content

Commit f7d2caa

Browse files
kermorgantzonuexe
authored andcommitted
Avoid use of context_menu rpc action for generate_accessor action
That was a temporary solution for bug phpactor/phpactor#622
1 parent a95821a commit f7d2caa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpactor.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ function."
737737
(defun phpactor-generate-accessors ()
738738
"Execute Phpactor PRC generate_accessor action."
739739
(interactive)
740-
(let ((arguments (phpactor--command-argments :current_path :offset :source)))
741-
(apply #'phpactor-action-dispatch (phpactor--rpc "context_menu" (append arguments (list :action "generate_accessor"))))))
740+
(let ((arguments (phpactor--command-argments :path :offset :source)))
741+
(apply #'phpactor-action-dispatch (phpactor--rpc "generate_accessor" arguments))))
742742

743743
;;;###autoload
744744
(defun phpactor-add-missing-assignments ()

0 commit comments

Comments
 (0)