]> git.eshelyaron.com Git - emacs.git/commitdiff
* eglot.el (eglot--process-receive): skip null method notifs.
authorJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 23:12:53 +0000 (00:12 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 3 May 2018 23:17:18 +0000 (00:17 +0100)
lisp/progmodes/eglot.el

index ebc07d216222e11117e96b97f3caf7c2838e78d0..693535ac8b13021c99cb3edbf0926ffd41df9dc6 100644 (file)
@@ -477,8 +477,11 @@ identifier.  ERROR is non-nil if this is an error."
                                           (plist-get message :params)
                                           (let ((id (plist-get message :id)))
                                             (if id `(:id ,id)))))
-               (eglot--warn "No implemetation for notification %s yet"
-                            method)))))))
+               ;; pyls keeps on sending nil notifs for each notif we
+               ;; send it, just ignore these.
+               (unless (null method)
+                 (eglot--warn "No implemetation for notification %s yet"
+                              method))))))))
 
 (defvar eglot--expect-carriage-return nil)