Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imenu not showing symbol types #96

Open
shunlir opened this issue Jul 27, 2020 · 3 comments
Open

imenu not showing symbol types #96

shunlir opened this issue Jul 27, 2020 · 3 comments

Comments

@shunlir
Copy link

shunlir commented Jul 27, 2020

image

@myrgy
Copy link
Contributor

myrgy commented Aug 18, 2020

emacs-lsp/lsp-mode#436

diff --git a/src/messages/textDocument_document.cc b/src/messages/textDocument_document.cc
index a1ce9494..60a4b50a 100644
--- a/src/messages/textDocument_document.cc
+++ b/src/messages/textDocument_document.cc
@@ -196,8 +196,8 @@ void MessageHandler::textDocument_documentSymbol(JsonReader &reader,
         auto *def = entity.anyDef();
         if (!def)
           return;
-        ds->name = def->name(false);
-        ds->detail = def->detailed_name;
+        ds->name = // def->name(false);
+            ds->detail = def->detailed_name;
         for (auto &def : entity.def)
           if (def.file_id == file_id && !ignore(&def)) {
             kind = ds->kind = def.kind;

@shunlir
Copy link
Author

shunlir commented Sep 3, 2020

@myrgy
The patch did the trick for me, thanks.
image

@myrgy
Copy link
Contributor

myrgy commented Sep 6, 2020

@shunlir , it worth to increase imenu-max-item-length

(setq imenu-max-item-length 256)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants