]> git.eshelyaron.com Git - emacs.git/commitdiff
Notify server of recent changes before save notification
authorMichal Krzywkowski <k.michal@zoho.com>
Thu, 9 Aug 2018 19:21:32 +0000 (21:21 +0200)
committerJoão Távora <joaotavora@gmail.com>
Thu, 9 Aug 2018 19:21:32 +0000 (20:21 +0100)
* eglot.el (eglot--signal-textDocument/didSave): Call
  eglot--signal-textDocument/didChange.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/60

lisp/progmodes/eglot.el

index 125c795bc3503fc23a62a790fa0e29f06d47ab2c..d29bef540cb53ad8fa16809836f8a83164a0d3c6 100644 (file)
@@ -1121,6 +1121,7 @@ When called interactively, use the currently active server"
 
 (defun eglot--signal-textDocument/didSave ()
   "Send textDocument/didSave to server."
+  (eglot--signal-textDocument/didChange)
   (jsonrpc-notify
    (eglot--current-server-or-lose)
    :textDocument/didSave