From: João Távora Date: Sun, 27 May 2018 13:53:53 +0000 (+0100) Subject: Set eglot--versioned-identifier to 0 on didopen X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~530 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7e5adc1b1727aa778759e44b4d9b991413c134f;p=emacs.git Set eglot--versioned-identifier to 0 on didopen Else cquery will rightfully complain about this. * eglot.el (eglot--signal-textDocument/didOpen): Also set eglot--versioned-identifier to 0. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index fa12577c694..dde0c22f830 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1181,7 +1181,7 @@ Records START, END and PRE-CHANGE-LENGTH locally." (defun eglot--signal-textDocument/didOpen () "Send textDocument/didOpen to server." - (setq eglot--recent-changes (cons [] [])) + (setq eglot--recent-changes (cons [] []) eglot--versioned-identifier 0) (eglot--notify (eglot--current-server-or-lose) :textDocument/didOpen `(:textDocument ,(eglot--TextDocumentItem))))