\f
;;; Protocol implementation (Requests, notifications, etc)
;;;
+(cl-defmethod eglot-handle-notification
+ (_server method &key)
+ "Handle unknown notification"
+ (eglot--warn "Server sent unknown notification method `%s'" method))
+
+(cl-defmethod eglot-handle-request
+ (_server method &key)
+ "Handle unknown request"
+ (jsonrpc-error "Unknown request method `%s'" method))
+
(cl-defmethod eglot-handle-notification
(_server (_method (eql window/showMessage)) &key type message)
"Handle notification window/showMessage"
(list :cacheDirectory (file-name-as-directory cache)
:progressReportFrequencyMs -1)))
-(cl-defmethod eglot-handle-notification
- ((_server eglot-cquery) (_method (eql $cquery/progress))
- &rest counts &key _activeThreads &allow-other-keys)
- "No-op for noisy $cquery/progress extension")
-
-(cl-defmethod eglot-handle-notification
- ((_server eglot-cquery) (_method (eql $cquery/setInactiveRegions))
- &key _uri _inactiveRegions &allow-other-keys)
- "No-op for unsupported $cquery/setInactiveRegions extension")
-
-(cl-defmethod eglot-handle-notification
- ((_server eglot-cquery) (_method (eql $cquery/publishSemanticHighlighting))
- &key _uri _symbols &allow-other-keys)
- "No-op for unsupported $cquery/publishSemanticHighlighting extension")
-
\f
;; FIXME: A horrible hack of Flymake's insufficient API that must go
;; into Emacs master, or better, 26.2