vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Call hierarchy

Open csholmq opened this issue 8 years ago • 145 comments

Perhaps the inverse to #15; to be able to view an entire call hierarchy of a function.

Seen it implemented in Eclipse.

csholmq avatar Apr 17 '16 16:04 csholmq

Having this feature would be awesome! In Eclipse it also works for class fields, enum constants and global variables (showing functions they're used in, and expanding the function call hierarchy from there). To be better than Eclipse, making it work for macros as well would be extra cool :)

It's really invaluable to understand and navigate non-small code bases.

DanielGibson avatar Feb 20 '17 17:02 DanielGibson

Visual Studio has this, but VS Code doesn't currently have any interface to enable a call hierarchy (other than possibly some unusual interface involving repeated dropdown popups). Maybe someone could file a feature request with VS Code to enable this, if it's not already been requested? This would require the IntelliSense engine from our end. It's not on our radar to implement this yet though (Find All References would be higher priority).

sean-mcmanus avatar Feb 21 '17 13:02 sean-mcmanus

Adding my vote to this one. This would be my number 1 most important missing feature and use it daily in eclipse to navigate and understand the structure of a large code base. I can live without find all references feature and use global text search with whole word option instead.

hoffmael avatar Apr 19 '17 07:04 hoffmael

See https://github.com/Microsoft/vscode/issues/16110 .

sean-mcmanus avatar Apr 19 '17 16:04 sean-mcmanus

A new tree view api has been added to vscode. So, this should be doable now.

gulshan avatar Jun 15 '17 22:06 gulshan

Looks like https://code.visualstudio.com/docs/extensionAPI/vscode-api#TreeDataProvider .

sean-mcmanus avatar Jun 15 '17 23:06 sean-mcmanus

Can I vote twice for this one? The well implemented call hierarchy is the main reason eclipse is still my go-to IDE as its an invaluable tool to navigate 1M+ LOC code bases.

hoffmael avatar Jun 16 '17 16:06 hoffmael

Awesome feature to have! Right there on the top of bucket list..

sandipanbiswas avatar Jun 20 '17 12:06 sandipanbiswas

+1 for having this useful feature integrated soon

jguiban avatar Feb 13 '18 14:02 jguiban

I would also appreciate this feature. Highly used feature... I finally could switch from eclipse to Visual code.

KarolisMil avatar Mar 11 '18 14:03 KarolisMil

@KarolisMil Yes, this is our second most up-voted feature request (behind find all references). Survey feedback indicates that too many users are having trouble getting IntelliSense setup so we're working on improving that first.

sean-mcmanus avatar Mar 12 '18 19:03 sean-mcmanus

I need the Call hierarchy too!

aisnote avatar Jun 19 '18 23:06 aisnote

anynews

iradiohead avatar Aug 06 '18 02:08 iradiohead

@iradiohead No news. We haven't started working on this yet. We plan to implement IntelliSense-based Go to Definition and Find All References before a Call Hierarchy, all of which requires implementing a multi-translation unit IntelliSense (our currently one is only one translation unit at a time).

sean-mcmanus avatar Aug 06 '18 07:08 sean-mcmanus

waiting for this feature. Daily waste like an hour because of absence of this feature!!

snanurag avatar Sep 07 '18 06:09 snanurag

please implement this. hard to be an IDE without searching the callers.

dbsquared avatar Oct 06 '18 10:10 dbsquared

need this feature. I think it's useful for large project.

lunxian avatar Jan 20 '19 02:01 lunxian

+1 for this feature Coming from eclipse, this is a MUST HAVE

ggruber4711 avatar Jan 26 '19 15:01 ggruber4711

Any updates?

defcod avatar Feb 28 '19 09:02 defcod

This is now third on the feature backlog. I don't have a date for you yet though.

bobbrow avatar Feb 28 '19 19:02 bobbrow

Great news! I am hoping its going to be similar to Eclipse's call hierarchy where a button lets you select if it's caller or callee [1] (though I rarely look up callees). Unlike [2]. However, like [2] would be great if we could have a code definition window where a preview is displayed for the selected item. This helps avoid context switching in the main editor.

[1] https://help.eclipse.org/mars/topic/org.eclipse.cdt.doc.user/images/view_call_hierarchy.png [2] https://docs.microsoft.com/en-us/visualstudio/ide/reference/call-hierarchy?view=vs-2017,

sdebnath avatar Mar 12 '19 00:03 sdebnath

Like Eclipse, XCode, PyCharm, whatever... this is absolutely needed in any serious professional programming environment Just find myself to switch back to XCode on my mac right now because I need to see a big project call tree... sigh...

kabukunz avatar Mar 15 '19 17:03 kabukunz

+10086 if any progress

totoleo avatar Apr 02 '19 02:04 totoleo

This would be great to enable in cpptools extension!

https://code.visualstudio.com/updates/v1_33#_call-hierarchy

sdebnath avatar Apr 05 '19 05:04 sdebnath

+1 for the request!

sjs7007 avatar Apr 18 '19 00:04 sjs7007

The Call hierarchy/Find references/Peek references can't work in VS code. I found this issue was first reported at 2016, can we have this function now? This is a very useful feature in DEV tool~

li459461891 avatar Apr 19 '19 08:04 li459461891

Any updates?

defcod avatar Jul 16 '19 23:07 defcod

@defcod We don't have this work on our schedule yet.

sean-mcmanus avatar Jul 16 '19 23:07 sean-mcmanus

This was in the Sept 2019 milestone: "@sean-mcmanus sean-mcmanus added this to the September 2019 milestone on Apr 3" and now back on deck - what's needed to prioritize this sooner?

sdebnath avatar Jul 16 '19 23:07 sdebnath

This is the 3rd most voted feature, but I don't think it made our cut for milestone scheduling purposes, because we have other stuff we're prioritizing like localization, non-UTF-8 support, make support, cmake support. In particular, we want to improve our infrastructure and code sharing with VS so that we can share a common call hierarchy implementation (and other features) instead of wasting time writing our own implementation that might get thrown away later (e.g. like what we're doing for Find All References). @bobbrow Might be able to explain better?

sean-mcmanus avatar Jul 17 '19 00:07 sean-mcmanus