File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ Here we create a temporary syntax table in order to add $ to symbols."
7575 " Show additional info (ARG) from phpactor as lateral annotation."
7676 (message (concat " " (get-text-property 0 'annotation arg))))
7777
78+ (defun company-phpactor--get-candidates-async (callback )
79+ " Get completion candidates asynchronously."
80+ (funcall callback (company-phpactor--get-candidates)))
81+
7882;;;### autoload
7983(defun company-phpactor (command &optional arg &rest ignored )
8084 " `company-mode' completion backend for Phpactor."
@@ -87,7 +91,9 @@ Here we create a temporary syntax table in order to add $ to symbols."
8791 (`annotation (company-phpactor--annotation arg))
8892 (`interactive (company-begin-backend 'company-phpactor ))
8993 (`prefix (company-phpactor--grab-symbol))
90- (`candidates (company-phpactor--get-candidates))))))
94+ (`candidates
95+ (cons :async (lambda (callback )
96+ (company-phpactor--get-candidates-async callback))))))))
9197
9298(provide 'company-phpactor )
9399; ;; company-phpactor.el ends here
You can’t perform that action at this time.
0 commit comments