Skip to content

Commit

Permalink
Default eglot-handle-notifictiona|request must &allow-other-keys
Browse files Browse the repository at this point in the history
* eglot.el (eglot-handle-notification, eglot-handle-request): Add
&allow-other-keys
  • Loading branch information
joaotavora committed Aug 3, 2018
1 parent e935718 commit eeb34c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,12 @@ Uses THING, FACE, DEFS and PREPEND."
;;; Protocol implementation (Requests, notifications, etc)
;;;
(cl-defmethod eglot-handle-notification
(_server method &key)
(_server method &key &allow-other-keys)
"Handle unknown notification"
(eglot--warn "Server sent unknown notification method `%s'" method))

(cl-defmethod eglot-handle-request
(_server method &key)
(_server method &key &allow-other-keys)
"Handle unknown request"
(jsonrpc-error "Unknown request method `%s'" method))

Expand Down

0 comments on commit eeb34c6

Please sign in to comment.