Also closes https://github.com/joaotavora/eglot/issues/87.
* eglot.el (eglot--signal-textDocument/didChange): Grab :change
from :textDocumentSync server capability.
GitHub-reference: close https://github.com/joaotavora/eglot/issues/86
"Send textDocument/didChange to server."
(when eglot--recent-changes
(let* ((server (eglot--current-server-or-lose))
- (sync-kind (eglot--server-capable :textDocumentSync))
+ (sync-capability (eglot--server-capable :textDocumentSync))
+ (sync-kind (if (numberp sync-capability) sync-capability
+ (plist-get sync-capability :change)))
(full-sync-p (or (eq sync-kind 1)
(eq :emacs-messup eglot--recent-changes))))
(jsonrpc-notify