Skip to content

Commit

Permalink
* eglot.el (advice-add jsonrpc-request): Add &allow-other-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotavora committed Aug 10, 2018
1 parent fd7e587 commit 792dc6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,8 @@ Records START, END and PRE-CHANGE-LENGTH locally."
;; bad idea, since that might lead to the request never having a
;; chance to run, because `jsonrpc-connection-ready-p'.
(advice-add #'jsonrpc-request :before
(cl-function (lambda (_proc _method _params &key deferred _timeout)
(cl-function (lambda (_proc _method _params &key
deferred &allow-other-keys)
(when (and eglot--managed-mode deferred)
(eglot--signal-textDocument/didChange))))
'((name . eglot--signal-textDocument/didChange)))
Expand Down

0 comments on commit 792dc6b

Please sign in to comment.