microsoft / microsoft/vscode-cpptools

Call hierarchy for structure member variable should show function names that reference it

Open
#11,765 3 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Feature: Call Hierarchy Language Service
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Feature Request

It is possible in eclipse to invoke call hierarchy on structure member thus producing following call tree where this member is used:
Screenshot 2023-12-08 at 13 41 17

With vscode however it is not possible as call hierarchy does not work for struct members and only find all references work which is great but not easy to work with because you don't have view of function names where it is used, so it's harder to really understand the code when you don't see self descriptive function names and all the locations where it is used without clicking manually:
Screenshot 2023-12-08 at 14 41 47

Please improve call hierarchy for struct members to do the same as find all references does but also show function name where it is called similar to eclipse. Additionally would be nice to have call tree and to show many matches.

There was a similar request:
https://github.com/microsoft/vscode-cpptools/issues/11037

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the vscode-cpptools extension using a C/C++ struct member, then compare Call Hierarchy with Find All References. Review the related issue #11037 for prior discussion. Done means struct-member call hierarchy identifies the referencing function names and presents the requested call tree and matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.