From c86410efad4e638a2d9571d1ebd86bd83c1b8e49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 13 Jun 2018 12:30:20 +0100 Subject: [PATCH] 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. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2