Skip to content

Call hierarchy #16

Closed
Closed

Description

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

Seen it implemented in Eclipse.

Activity

  1. DanielGibson commented on Feb 20, 2017

    @DanielGibson

    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.

  2. sean-mcmanus commented on Feb 21, 2017

    @sean-mcmanus
    Contributor

    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).

  3. hoffmael commented on Apr 19, 2017

    @hoffmael

    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.

  4. sean-mcmanus commented on Apr 19, 2017

    @sean-mcmanus
    Contributor
  5. gulshan commented on Jun 15, 2017

    @gulshan

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

  6. hoffmael commented on Jun 16, 2017

    @hoffmael

    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.

  7. sandipanbiswas commented on Jun 20, 2017

    @sandipanbiswas

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

  8. jguiban commented on Feb 13, 2018

    @jguiban

    +1 for having this useful feature integrated soon

  9. KarolisMil commented on Mar 11, 2018

    @KarolisMil

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

  10. sean-mcmanus commented on Mar 12, 2018

    @sean-mcmanus
    Contributor

    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.

  11. 203 remaining items

  12. talabir commented on May 31, 2023

    @talabir

    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?

  13. michelleangela commented on May 31, 2023

    @michelleangela
    Contributor

    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.

  14. talabir commented on May 31, 2023

    @talabir

    Michelle Matias (@michelleangela) is it possible to add a feature request for it?
    It's really useful...

  15. michelleangela commented on May 31, 2023

    @michelleangela
    Contributor

    Michelle Matias (@michelleangela) is it possible to add a feature request for it? It's really useful...

    Sure, if you'd like, you're welcome to create a new issue for a feature request.

  16. talabir commented on Jun 1, 2023

    @talabir
  17. chrislro2019 commented on Jun 5, 2023

    @chrislro2019

    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.

  18. michelleangela commented on Jun 5, 2023

    @michelleangela
    Contributor

    🎗️ 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.

  19. michelleangela commented on Jun 23, 2023

    @michelleangela
    Contributor

    Call hierarchy is now available in release version 1.16.2.

  20. VictorChun commented on Jun 23, 2023

    @VictorChun
  21. agosdahu commented on Jun 23, 2023

    @agosdahu

    Much awaited!
    Cheers!

  22. csholmq commented on Jun 23, 2023

    @csholmq
    ContributorAuthor

    💥

  23. locked and limited conversation to collaborators on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions