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

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

[elpa] externals/eglot 57779f9c39: Properly check the CompletionItem.dep


From: ELPA Syncer
Subject: [elpa] externals/eglot 57779f9c39: Properly check the CompletionItem.deprecated property
Date: Sun, 23 Jan 2022 09:57:25 -0500 (EST)

branch: externals/eglot
commit 57779f9c3940a188e2c089758d095d05cf0a0e24
Author: Brian Leung <leungbk@posteo.net>
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.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 957ddde68c..5a0a8caba4 100644
--- a/eglot.el
+++ b/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]