-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Call hierarchy #16
Comments
Having this feature would be awesome! It's really invaluable to understand and navigate non-small code bases. |
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). |
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. |
See microsoft/vscode#16110 . |
A new tree view api has been added to vscode. So, this should be doable now. |
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. |
Awesome feature to have! Right there on the top of bucket list.. |
+1 for having this useful feature integrated soon |
I would also appreciate this feature. Highly used feature... I finally could switch from eclipse to Visual code. |
@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. |
I need the Call hierarchy too! |
anynews |
@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). |
waiting for this feature. Daily waste like an hour because of absence of this feature!! |
please implement this. hard to be an IDE without searching the callers. |
need this feature. I think it's useful for large project. |
+1 for this feature |
Any updates? |
This is now third on the feature backlog. I don't have a date for you yet though. |
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 |
Like Eclipse, XCode, PyCharm, whatever... this is absolutely needed in any serious professional programming environment |
@cdong8812 I created the new issue #10996 for this feature request. |
I've created the new issue #10997 for this request.
It should follow the file exclude settings, also ensure |
Are there plans to support call hierarchy for variables/class members? |
@talabir |
@michelleangela |
Does the extension detects calls to functions that are part of a function pointer array? |
michelleangela |
@talabir |
@michelleangela In the Eclipse C/C++ Development Tools, call hierarchy has only worked on actual functions for me, not for global variables in the C code (maybe that has changed in more recent versions, or maybe it would work on C++ class members, I don't know). Instead, I always need to use the Search for References feature on variables, which is similar to the Go to References command in VS code. To go further with the callers, I would have to separately invoke the call hierarchy on the functions in which the references were found. That is somewhat less convenient than in Java and may require more than just one call hierarchy invocation, generating a new tree each time. Great to hear that the call hierarchy feature comes to VS Code for C/C++! Thank you for making it happen! |
@j4yk Unlike Java or C# though, there's no call hierarchy on variables for C++, only on functions or class methods. The closest thing would be doing a reference search on a symbol (e.g. variable) and see which reference is a function that uses the symbol. |
@michelleangela are there plans to add support for call hierarchy for members and normal variables? |
@talabir |
@michelleangela is it possible to add a feature request for it? |
Sure, if you'd like, you're welcome to create a new issue for a feature request. |
Thank you, |
Great to see this long awaited feature is implemented 👍 I installed the pre-release version. Works so far as expected, but I cannot assign a keyboard shortcut to "Peek Call Hierarchy" (I like more the "inline" view like all the other "Peek"). Is this missing just in this pre-release or might this be another request? EDIT: I found finally this older vscode issue microsoft/vscode#113184 (comment) - summary: against my expectation "peek" is not the term used in Keyboard Shortcuts. Then irritatingly by default SHIFT+ALT+H is also used by references-view.showCallHierarchy to show the hierarchy in the side bare. When assigning a different, non-default shortcut to editor.showCallHierarchy (or changing it for references-view.showCallHierarchy), then the "peek" UI is used. |
@chrislro2019 You should file a VS Code bug at https://github.com/microsoft/vscode/issues . |
🎗️ Reminder about creating issues for call hierarchy 🎗️For Data Processing or Data Result For User Interface |
Call hierarchy is now available in release version 1.16.2. |
@michelleangela many thanks!!! |
Much awaited! |
💥 |
Perhaps the inverse to #15; to be able to view an entire call hierarchy of a function.
Seen it implemented in Eclipse.
The text was updated successfully, but these errors were encountered: