File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ Here we create a temporary syntax table in order to add $ to symbols."
6262 (let ((response (phpactor--rpc " complete" (phpactor--command-argments :source :offset ))))
6363 (plist-get (plist-get (plist-get response :parameters ) :value ) :suggestions )))
6464
65- (defun company-phpactor--get-candidates ()
65+ (defun company-phpactor--get-candidates (&optional suggestions )
6666 " Build a list of candidates with text-properties extracted from phpactor's output."
67- (let ((suggestions (company-phpactor--get-suggestions)) candidate)
67+ (let ((suggestions (or suggestions (company-phpactor--get-suggestions)))
68+ candidate)
6869 (mapcar
6970 (lambda (suggestion )
7071 (setq candidate (plist-get suggestion :name ))
You can’t perform that action at this time.
0 commit comments