emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/elpa b1554fc 055/139: * eglot.el (eglot--process-receiv


From: João Távora
Subject: [elpa] externals/elpa b1554fc 055/139: * eglot.el (eglot--process-receive): Skip null method notifs.
Date: Mon, 14 May 2018 09:53:34 -0400 (EDT)

branch: externals/elpa
commit b1554fc921f8d91870373cf9d3a089afc3f0f63d
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    * eglot.el (eglot--process-receive): Skip null method notifs.
---
 eglot.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index ebc07d2..693535a 100644
--- a/eglot.el
+++ b/eglot.el
@@ -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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]