You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps the inverse to #15; to be able to view an entire call hierarchy of a function.
Seen it implemented in Eclipse.
Reacted by lianghu, Rajesh Gali, P.Elley, Felipe Salazar, Jack Jia, TJ Atterberry, Nic Holthaus, Kushagra Sharma, feiste, Tingan Ho and 370 more
Reacted by abinmathewabraham, AdamEr8, Rajah Chandrasekhar, PashMohandes, Oliver Keller, nico, Thiago Navarro, chrislro2019, yxh, Aqil Contractor and 5 more
Reacted by zzbq, Robert Curtin, yishen.dev, crazycliffy, Ashnal, Brian Collum, Riken Shah, Florent Guiliani, abinmathewabraham, Brice Dutheil and 19 more
Reacted by chrislro2019, yxh, Aqil Contractor, Clément Bazerque, Hans Riekehof and pramit-live
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.
Reacted by Alin Micu, Oleksandr Haidamaka, konradsa, woggs, JBPlinn, Florent Guiliani, Rajah Chandrasekhar, Lukasz Tyrala, uygarp, Ludovic Cintrat and 4 more
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.
Reacted by Jonathan Watt, ANURAG SHRINAGAR, Tomasz Rybicki, Troy Dugger, guobinzhao, Hari Babu Kommi, Dmitriy Zasukha, Richard Lee, 罗振兴, YalandHong and 15 more
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.
Reacted by Jonathan Watt, ANURAG SHRINAGAR, Tomasz Rybicki, Richard Lee, Oleksandr Haidamaka, Louis Deflandre, Emil Valeev, Vishal Verma, Pavel Rosenboim, Greg Gr and 3 more
Karolis (@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.
Reacted by jerome guiban, Jonathan Watt, Karolis, William Skellenger, LeonidKokhnovich, likuanhui, Rui Alves, Tomasz Rybicki, Dmitriy Zasukha, Naor Malca and 3 more
Reacted by jerome guiban, William Skellenger, Idan Pazi, Naor Malca and Emil Valeev
Michelle Matias (@michelleangela) are there plans to add support for call hierarchy for members and normal variables?
Is it hard or a low hanging fruit?
Michelle Matias (@michelleangela) are there plans to add support for call hierarchy for members and normal variables? Is it hard or a low hanging fruit?
talabir
There's no call hierarchy on variables for C++, only on functions or class methods. As this is not a thing for C++ there are no plans for this. 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.
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.
For User Interface
For concerns about the user interface (such as the references panel view, commands, shortcuts, etc.) of call hierarchy please create a new issue at the VS Code repository as the VS Code client implements the API provider. The C++ extension only provides the data.
Reacted by TakatoshiYamaoka, chrislro2019 and YalandHong
Activity
DanielGibson commentedon Feb 20, 2017
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.
sean-mcmanus commentedon Feb 21, 2017
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).
hoffmael commentedon Apr 19, 2017
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.
sean-mcmanus commentedon Apr 19, 2017
See microsoft/vscode#16110 .
gulshan commentedon Jun 15, 2017
A new tree view api has been added to vscode. So, this should be doable now.
sean-mcmanus commentedon Jun 15, 2017
Looks like https://code.visualstudio.com/docs/extensionAPI/vscode-api#TreeDataProvider .
hoffmael commentedon Jun 16, 2017
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.
sandipanbiswas commentedon Jun 20, 2017
Awesome feature to have! Right there on the top of bucket list..
jguiban commentedon Feb 13, 2018
+1 for having this useful feature integrated soon
KarolisMil commentedon Mar 11, 2018
I would also appreciate this feature. Highly used feature... I finally could switch from eclipse to Visual code.
sean-mcmanus commentedon Mar 12, 2018
Karolis (@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.
203 remaining items
talabir commentedon May 31, 2023
Michelle Matias (@michelleangela) are there plans to add support for call hierarchy for members and normal variables?
Is it hard or a low hanging fruit?
michelleangela commentedon May 31, 2023
talabir
There's no call hierarchy on variables for C++, only on functions or class methods. As this is not a thing for C++ there are no plans for this. 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.
talabir commentedon May 31, 2023
Michelle Matias (@michelleangela) is it possible to add a feature request for it?
It's really useful...
michelleangela commentedon May 31, 2023
Sure, if you'd like, you're welcome to create a new issue for a feature request.
talabir commentedon Jun 1, 2023
Michelle Matias (@michelleangela)
#11037
Thank you,
Tal.
chrislro2019 commentedon Jun 5, 2023
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.
sean-mcmanus commentedon Jun 5, 2023
chrislro2019 You should file a VS Code bug at https://github.com/microsoft/vscode/issues .
michelleangela commentedon Jun 5, 2023
🎗️ Reminder about creating issues for call hierarchy 🎗️
For Data Processing or Data Result
For new feature requests or new issues concerning data processing or data result of call hierarchy, please create a new issue for the C++ extension.
For User Interface
For concerns about the user interface (such as the references panel view, commands, shortcuts, etc.) of call hierarchy please create a new issue at the VS Code repository as the VS Code client implements the API provider. The C++ extension only provides the data.
michelleangela commentedon Jun 23, 2023
Call hierarchy is now available in release version 1.16.2.
VictorChun commentedon Jun 23, 2023
Michelle Matias (@michelleangela) many thanks!!!
agosdahu commentedon Jun 23, 2023
Much awaited!
Cheers!
csholmq commentedon Jun 23, 2023
💥