* eglot.el (eglot--signal-textDocument/didClose): Use
with-demoted-errors.
GitHub-reference: close https://github.com/joaotavora/eglot/issues/115
(defun eglot--signal-textDocument/didClose ()
"Send textDocument/didClose to server."
- (jsonrpc-notify
- (eglot--current-server-or-lose)
- :textDocument/didClose `(:textDocument ,(eglot--TextDocumentIdentifier))))
+ (with-demoted-errors
+ "[eglot] error sending textDocument/didClose: %s"
+ (jsonrpc-notify
+ (eglot--current-server-or-lose)
+ :textDocument/didClose `(:textDocument ,(eglot--TextDocumentIdentifier)))))
(defun eglot--signal-textDocument/willSave ()
"Send textDocument/willSave to server."