castwide / solargraph

A Ruby language server.
https://solargraph.org
MIT License
1.89k stars 158 forks source link

Add support for call hierarchies #610

Open kikeenrique opened 1 year ago

kikeenrique commented 1 year ago

Hi, I develop in ruby from time to time, and I really miss the possibility to search for a function call hierarchy. From ignorance, would it be feasible to add support for it?

Reference: LSP spec Call Hierarchy #468

castwide commented 1 year ago

Can you explain how this feature would be different from find all references? They both seem like a way to return all of the function's callers in the workspace. Apologies if I'm misunderstanding the purpose.

castwide commented 1 year ago

On second perusal, I guess this means not just finding the specific references, but the methods in which the referenced method is called?

kikeenrique commented 1 year ago

On second perusal, I guess this means not just finding the specific references, but the methods in which the referenced method is called?

Yes, that's it. Some examples in other languages: https://stackoverflow.com/questions/56008476/call-hierarchy-in-visual-studio-code https://github.com/abdalmoniem/VSCode-C-Call-Hierarchy