On 12.04.2021 14:04, Daniel Mendler wrote:
The `consult--async-sink` contains this code which performs the
refreshing:
;; Refresh the UI when the current minibuffer window belongs
;; to the current asynchronous completion session.
(when-let (win (active-minibuffer-window))
(when (eq (window-buffer win) buffer)
(with-selected-window win
(run-hooks 'consult--completion-refresh-hook)))))
Sounds good for minibuffers, but not so great for code completion, where
context is more complex. And since completing-read shares the notion of
completion table with completion-at-point-functions, I think any async
support we add should work for both purposes.