Skip to content

Commit e3aab3b

Browse files
author
Bozhidar Batsov
committed
Track cider-nrepl changes in the complete middleware
1 parent 8b8cf4c commit e3aab3b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cider-client.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,13 @@ loaded. If CALLBACK is nil, use `cider-load-file-handler'."
193193

194194
(defun cider-sync-request:complete (str context)
195195
"Return a list of completions for STR using nREPL's \"complete\" op."
196-
(cider--sync-request-value (list "op" "complete"
197-
"session" (nrepl-current-session)
198-
"ns" (cider-current-ns)
199-
"symbol" str
200-
"context" context)))
196+
(-> (list "op" "complete"
197+
"session" (nrepl-current-session)
198+
"ns" (cider-current-ns)
199+
"symbol" str
200+
"context" context)
201+
(nrepl-send-sync-request)
202+
(nrepl-dict-get "completions")))
201203

202204
(defun cider-sync-request:info (symbol &optional class member)
203205
"Send \"info\" op with parameters SYMBOL or CLASS and MEMBER."

0 commit comments

Comments
 (0)