[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eglot-cthier.el --- show call hierarchy with Eglot (formally called
From: |
Filippo Argiolas |
Subject: |
Re: eglot-cthier.el --- show call hierarchy with Eglot (formally called eglot-hierarchy) |
Date: |
Wed, 11 Dec 2024 07:05:50 +0100 |
Harald Kirsch <pifpafpuf@gmx.de> writes:
> This shows a call hierarchy as a foldable tree, unfolded on demand.
>
> Through nice feedback here, on codeberg and on @HaraldKi@nrw.social, it
> got a significant update with bug fixes, enhancements and code improvements.
>
> I test this with eglipse-jdts (Java) and tsc (TypeScript).
>
> https://codeberg.org/harald/eglot-supplements#call-hierarchy
>
> Feedback welcome.
Thanks Harald, love it!
Seems to work with clangd too if you want to add it to the list of
supported servers. Let me know if you want me to test something
specific.
How about an option to unfold the tree by default? I was testing on a
small project, probably it gets quite bigger on large projects and
it's better to leave it folded?
Not sure if it's a clangd thing, I noticed that when I request the call
hierarchy on anything other than a function call or declaration I get a
"Error running timer: (args-out-of-range [] 0)". Maybe it could be
handled more nicely? Not sure it's something to notify the user about,
guess silently doing nothing would be fine.
Also, when I get to a leaf in the tree it shows with the '+' prefix,
when expanded it becomes '-' but there is nothing to expand so it just
changes the prefix. Maybe the leaf nodes should be made non-expandable?