Skip to content

Commit

Permalink
Close #60: 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.
#60: joaotavora/eglot#60
  • Loading branch information
mkcms authored and joaotavora committed Aug 9, 2018
1 parent 4405b17 commit c53c436
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 c53c436

Please sign in to comment.