Skip to content
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 for variables, classes, macros, etc ... #11037

Open
talabir opened this issue Jun 1, 2023 · 8 comments
Open

Call hierarchy for variables, classes, macros, etc ... #11037

talabir opened this issue Jun 1, 2023 · 8 comments

Comments

@talabir
Copy link

talabir commented Jun 1, 2023

Feature Request

In Eclipse CDT, one can ask for call hierarchy not only for functions but for variables, classes and much more.
The symbol appears as the root of the hierarchy, the references to that symbol appears in the next level of hierarchy and so on.

It is very useful feature for the common engineer,
it could be great addition to the vscode features.

Thank you,
Tal.

@aniljosephk
Copy link

Yes. It's a much-awaited feature in vs code. I'm forced to use Eclipse CDT just for the call hierarchy feature. Please implement this feature as soon as possible.

@bobbrow
Copy link
Member

bobbrow commented Jun 12, 2023

The Eclipse IDE documentation only mentions functions for call hierarchy.

For variables, I'm not aware of there being a "hierarchy" but you can do "find all references" to see all the places it is used. Can you explain more how it works in Eclipse?

For classes, I see Eclipse has a "Type Hierarchy" view that will let you see inheritance/interface implementation. That feature request is covered by #3799.

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Jun 12, 2023

@bobbrow Michelle and I discussed this -- it just shows nothing for Calls From and shows the (confirmed) users of the "non-function code item" for Calls To -- the advantage of Find All References is that the user functions can then be expanded to find their callers. So I don't think we need any more explanation from the users (I believe they're referring to the behavior for Java in Eclipse).

@talabir
Copy link
Author

talabir commented Jun 13, 2023

The ability to combine both find all references and call hierarchy is really useful.
For example, In case there are several references at the same function, the function appears only once and the number of references appear next to it

@github-actions
Copy link

This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.

@github-actions github-actions bot added the more votes needed Issues that have been postponed until more community members upvote it label Aug 12, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2023
@github-actions github-actions bot added this to the Triage milestone Aug 12, 2023
@github-actions github-actions bot reopened this Dec 8, 2023
@github-actions github-actions bot modified the milestones: Triage, Backlog Dec 8, 2023
@github-actions github-actions bot removed the more votes needed Issues that have been postponed until more community members upvote it label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This feature request has received enough votes to be added to our backlog.

@sokurenko
Copy link

The Eclipse IDE documentation only mentions functions for call hierarchy.

For variables, I'm not aware of there being a "hierarchy" but you can do "find all references" to see all the places it is used. Can you explain more how it works in Eclipse?

For classes, I see Eclipse has a "Type Hierarchy" view that will let you see inheritance/interface implementation. That feature request is covered by #3799.

Please see #11765

@pushkarajthorat
Copy link

The ability to combine both find all references and call hierarchy is really useful. For example, In case there are several references at the same function, the function appears only once and the number of references appear next to it

VScode should either warn saying, it is a variable and not a function hence Call Herarchie could not be shown. OR it should silently run Find All References whever variables are been searched upon for Call Herarchie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants