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

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

[elpa] 1.2 ff62057 071/101: Fix #138: accept deprecated field in SymbolI


From: Christian Johansson
Subject: [elpa] 1.2 ff62057 071/101: Fix #138: accept deprecated field in SymbolInformation
Date: Thu, 29 Apr 2021 15:09:03 -0400 (EDT)

tag: 1.2
commit ff62057d3949b7992b31f48a47c25dc9f5aad870
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]