emacs-diffs
[Top][All Lists]
Advanced

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

feature/eglot2emacs 8b31247f1c 044/120: Properly check the completionite


From: João Távora
Subject: feature/eglot2emacs 8b31247f1c 044/120: Properly check the completionitem.deprecated property
Date: Thu, 20 Oct 2022 07:16:49 -0400 (EDT)

branch: feature/eglot2emacs
commit 8b31247f1c6626b289e75460e0d0978bf446e05a
Author: Brian Leung <bkleung89@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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 957ddde68c..5a0a8caba4 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)



reply via email to

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