Skip to content

Commit

Permalink
Notify server of recent changes before save notification
Browse files Browse the repository at this point in the history
* eglot.el (eglot--signal-textDocument/didSave): Call
  eglot--signal-textDocument/didChange.

GitHub-reference: close joaotavora/eglot#60
  • Loading branch information
mkcms authored and joaotavora committed Aug 9, 2018
1 parent c93150e commit da11bba
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 da11bba

Please sign in to comment.