Inaccurate Go-to-Implementation for Functions with the Same Name in C++ #12715
Labels
Language Service
more info needed
The issue report is not actionable in its current state
not reproing
We're not able to reproduce the issue (it's unlikely to get fixed until we find one).
Environment
Bug Summary and Steps to Reproduce
Description:
When working on a C++ project in Visual Studio Code, I encounter an issue where clicking on a function call in a header file does not directly navigate to the correct function definition when there are multiple functions with the same name across different classes. Instead, VSCode presents a list of all matching functions, requiring manual selection.
Steps to Reproduce:
1.
Create two or more C++ classes each containing a function with the same name.
2.
Include these headers in a source file.
3.
Attempt to navigate to the implementation of the function by clicking on its declaration in the header file.
Expected Behavior: Visual Studio Code should ideally be able to discern the correct function implementation based on context and directly navigate to it without needing user intervention.
Actual Behavior:
A dropdown appears listing all implementations of the function with the same name, necessitating manual selection of the intended function.
Expected Behavior:
Visual Studio Code should ideally be able to discern the correct function implementation based on context and directly navigate to it without needing user intervention.
Actual Behavior: A dropdown appears listing all implementations of the function with the same name, necessitating manual selection of the intended function.
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: