microsoft / microsoft/vscode-cpptools
Go to Definition acts like Go to References
Open
Nobody has claimed this yet.
external
investigate: repro
Language Service
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Have foo() declared in foo.h, defined in foo.cpp and used in main.cpp. Pressing F12 on either declaration or definition will sometimes show all references instead of going to declaration/definition.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with foo.h, foo.cpp, and main.cpp, using F12 on both the declaration and definition. Trace the Go to Definition behavior and compare it with the references result; done means F12 consistently navigates to the declaration or definition instead of showing references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100