From: João Távora Date: Wed, 13 Jun 2018 11:30:20 +0000 (+0100) Subject: Fix bug in querying server capabilities X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~505 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c86410efad4e638a2d9571d1ebd86bd83c1b8e49;p=emacs.git Fix bug in querying server capabilities This lead to javascript-typescript-stdio being sent an incremental didChange notif, which it doesn't support. * eglot.el (eglot--server-capable): Fix bug. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 59475eb7fc7..d9fbd331c1d 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -867,8 +867,8 @@ under cursor." for feat in feats for probe = (plist-member caps feat) if (not probe) do (cl-return nil) - if (eq (cadr probe) t) do (cl-return t) if (eq (cadr probe) :json-false) do (cl-return nil) + if (not (listp (cadr probe))) do (cl-return (cadr probe)) finally (cl-return (or probe t))))) (defun eglot--range-region (range &optional markers)