zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
45.87k stars 2.54k forks source link

add 'Show Call Hierarchy' to right-click menu on function name for Golang #14203

Open giulianopz opened 1 month ago

giulianopz commented 1 month ago

Check for existing issues

Describe the feature

It seems to me that this feature is not yet implemented, please correct me if I'm wrong. Anyway I would love to have the same "call hierarchy" view which is curretly offered by VScode as show in their docs.

If applicable, add mockups / screenshots to help present your vision of the feature

call-hierarchy-view-demo

notpeter commented 1 month ago

See: prepareCallHierarchy in the language server protocol specification.

This is supported for C++ (clangd), TS/JS (vtlsls), java, haskell (hls), rust (rust-analyzer) and potentially others.

giulianopz commented 1 month ago

Hi @notpeter, thanks for replying to me. This feature request is specifically intended for Go since for this language it seems not yet supported. I will change the issue title accordingly.

notpeter commented 1 month ago

Hi @notpeter, thanks for replying to me. This feature request is specifically intended for Go since for this language it seems not yet supported. I will change the issue title accordingly.

It's part of the spec so (fingers crossed) the implementation should work across all languages where the language server has implemented support (a bunch of them). Thanks for reporting and clarifying your use case.