From: Michal Krzywkowski Date: Thu, 9 Aug 2018 19:21:32 +0000 (+0200) Subject: Notify server of recent changes before save notification X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~457 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da11bba15e8026cd177364d3be9d87554b3ab147;p=emacs.git Notify server of recent changes before save notification * eglot.el (eglot--signal-textDocument/didSave): Call eglot--signal-textDocument/didChange. GitHub-reference: close https://github.com/joaotavora/eglot/issues/60 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 125c795bc35..d29bef540cb 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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