From 1f865ee560c75cb06807b0598043303d36c62d46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 30 Oct 2018 12:22:32 +0000 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)))) -- 2.39.2