From da11bba15e8026cd177364d3be9d87554b3ab147 Mon Sep 17 00:00:00 2001 From: Michal Krzywkowski Date: Thu, 9 Aug 2018 21:21:32 +0200 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2