Skip to content

Commit

Permalink
Properly check the CompletionItem.deprecated property
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
leungbk authored and skangas committed Jan 23, 2022
1 parent d25a7e2 commit 57779f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57779f9

Please sign in to comment.