Skip to content

Commit 24c67aa

Browse files
committed
Impl phpactor-context-menu command
1 parent 8cdd2e9 commit 24c67aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpactor.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,13 @@
317317
(let ((arguments (phpactor--command-argments :source :path)))
318318
(apply #'phpactor-action-dispatch (phpactor--rpc "transform" arguments))))
319319

320+
;;;###autoload
321+
(defun phpactor-context-menu ()
322+
"Execute Phpactor PRC context_menu command."
323+
(interactive)
324+
(let ((arguments (phpactor--command-argments :source :offset :current_path)))
325+
(apply #'phpactor-action-dispatch (phpactor--rpc "context_menu" arguments))))
326+
320327
;;;###autoload
321328
(defun phpactor-navigate ()
322329
"Execute Phpactor RPC navigate command."

0 commit comments

Comments
 (0)