Skip to content

Commit

Permalink
Close joaotavora/eglot#60: Notify server of recent changes before sav…
Browse files Browse the repository at this point in the history
…e notification

* eglot.el (eglot--signal-textDocument/didSave): Call
  eglot--signal-textDocument/didChange.
  • Loading branch information
mkcms authored and joaotavora committed Aug 9, 2018
1 parent c7cbec2 commit 2c2e238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c2e238

Please sign in to comment.