Jsonrpc continuations were reworked on the Emacs master branch to be an alist rather than a hash-table in commit 222f563f136.
Currently, this change breaks doom-modeline-update-eglot, which prevents eglot from starting due to a type error from the use of hash-table-count on an alist. The function jsonrpc-continuation-count was added to properly get the number of continuations.
This PR adds a function doom-modeline--eglot-pending-count to check if the new function is bound, and if not, fallback to the old method of getting the pending count.
Jsonrpc continuations were reworked on the Emacs master branch to be an alist rather than a hash-table in commit 222f563f136.
Currently, this change breaks
doom-modeline-update-eglot
, which preventseglot
from starting due to a type error from the use ofhash-table-count
on an alist. The functionjsonrpc-continuation-count
was added to properly get the number of continuations.This PR adds a function
doom-modeline--eglot-pending-count
to check if the new function is bound, and if not, fallback to the old method of getting the pending count.