seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

fix: use jsonrpc-continuation-count in doom-modeline-update-eglot #686

Closed akreisher closed 8 months ago

akreisher commented 8 months ago

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.

seagle0128 commented 8 months ago

Thank you!