]> git.eshelyaron.com Git - emacs.git/commitdiff
Set eglot--versioned-identifier to 0 on didopen
authorJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 13:53:53 +0000 (14:53 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 27 May 2018 13:53:53 +0000 (14:53 +0100)
Else cquery will rightfully complain about this.

* eglot.el (eglot--signal-textDocument/didOpen): Also set
eglot--versioned-identifier to 0.

lisp/progmodes/eglot.el

index fa12577c6947ca2917a5ca1597f2dc54ac8f4a75..dde0c22f83071897f01635745498f970b5659484 100644 (file)
@@ -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))))