From 8b31247f1c6626b289e75460e0d0978bf446e05a Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Sat, 22 Jan 2022 19:59:06 -0800 Subject: [PATCH] Properly check the completionitem.deprecated property * eglot.el (eglot-completion-at-point): Check the :deprecated property is `t'. We do this so that a :deprecated property of :json-false does not cause a completion candidate to be incorrectly marked as deprecated. --- 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 957ddde68c2..5a0a8caba48 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2472,7 +2472,7 @@ is not active." (when-let ((lsp-item (get-text-property 0 'eglot--lsp-item proxy))) (or (seq-contains-p (plist-get lsp-item :tags) 1) - (plist-get lsp-item :deprecated)))) + (eq t (plist-get lsp-item :deprecated))))) :company-docsig ;; FIXME: autoImportText is specific to the pyright language server (lambda (proxy) -- 2.39.5