(defvar revert-buffer-preserve-modes)
(defun eglot--after-revert-hook ()
"Eglot's `after-revert-hook'."
+ ;; FIXME: Do we really need this?
(when revert-buffer-preserve-modes (eglot--signal-textDocument/didOpen)))
(defun eglot--maybe-activate-editing-mode ()
(defun eglot--signal-textDocument/didOpen ()
"Send textDocument/didOpen to server."
+ ;; Flush any potential pending change.
+ (eglot--track-changes-fetch eglot--track-changes)
(setq eglot--recent-changes nil
eglot--versioned-identifier 0
eglot--TextDocumentIdentifier-cache nil)