tag: 1.2
commit ff62057d3949b7992b31f48a47c25dc9f5aad870
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Fix #138: accept deprecated field in SymbolInformation
* eglot.el (xref-backend-identifier-completion-table)
(eglot-imenu): Accept and ignore "deprecated"
---
eglot.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eglot.el b/eglot.el
index 3d77a4f..297d6f4 100644
--- a/eglot.el
+++ b/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))))