From f7e5adc1b1727aa778759e44b4d9b991413c134f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 27 May 2018 14:53:53 +0100 Subject: [PATCH] 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. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) -- 2.39.2