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

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

[elpa] externals/eglot 27696d6 23/45: Use the container name of a symbol


From: João Távora
Subject: [elpa] externals/eglot 27696d6 23/45: Use the container name of a symbol in imenu
Date: Thu, 22 Nov 2018 19:15:30 -0500 (EST)

branch: externals/eglot
commit 27696d69c81c9e23ec917d846379ac0527a7e667
Author: Michał Krzywkowski <address@hidden>
Commit: mkcms <address@hidden>

    Use the container name of a symbol in imenu
    
    * eglot.el (eglot-imenu): Prepend :containerName to each symbol, when
      provided.
---
 eglot.el | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/eglot.el b/eglot.el
index 26ee814..e151704 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1657,10 +1657,15 @@ If SKIP-SIGNATURE, don't try to send 
textDocument/signatureHelp."
       (let ((entries
              (mapcar
               (jsonrpc-lambda
-                  (&key name kind location _containerName _deprecated)
+                  (&key name kind location containerName _deprecated)
                 (cons (propertize
-                       name :kind (alist-get kind eglot--symbol-kind-names
-                                             "(Unknown)"))
+                       (concat
+                        (and (stringp containerName)
+                             (not (string-empty-p containerName))
+                             (concat containerName "::"))
+                        name)
+                       :kind (alist-get kind eglot--symbol-kind-names
+                                        "(Unknown)"))
                       (eglot--lsp-position-to-point
                        (plist-get (plist-get location :range) :start))))
               (jsonrpc-request (eglot--current-server-or-lose)



reply via email to

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