From: João Távora Date: Tue, 30 Oct 2018 12:22:32 +0000 (+0000) Subject: Accept deprecated field in symbolinformation X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~416 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f865ee560c75cb06807b0598043303d36c62d46;p=emacs.git Accept deprecated field in symbolinformation * eglot.el (xref-backend-identifier-completion-table) (eglot-imenu): Accept and ignore "deprecated" GitHub-reference: fix https://github.com/joaotavora/eglot/issues/138 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 3d77a4faf4a..297d6f4f0ea 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1348,7 +1348,7 @@ DUMMY is ignored." (setq eglot--xref-known-symbols (mapcar (jsonrpc-lambda - (&key name kind location containerName) + (&key name kind location containerName _deprecated) (propertize name :textDocumentPositionParams (list :textDocument text-id @@ -1656,7 +1656,7 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." (let ((entries (mapcar (jsonrpc-lambda - (&key name kind location _containerName) + (&key name kind location _containerName _deprecated) (cons (propertize name :kind (cdr (assoc kind eglot--symbol-kind-names))) (eglot--lsp-position-to-point (plist-get (plist-get location :range) :start))))