-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
it goes to declaration instead of definition #3378
Comments
Then I removed "headers" folder from my workspaces. "go to definition" on function "Test" is right. But after I close and reopen vscode, it didn't work again. |
I tried operators above for some times and it seems that it's not stabled. Sometimes it went to declarations and sometimes it went to declarations. |
Should be fixed 0.23.1. |
I am working in VSCode Version: 1.49.3 and have this bug, macOS 10.15.4 When I click "Go to definition", sometimes it went to declarations and sometimes it went to the definition. c_cpp_properties.json
|
@sean-mcmanus please reopen |
Type: LanguageService
Describe the bug
To Reproduce
cpp_test.cpp(in cpps folder)
#include "../headers/headers_test.h"
int cpps_test()
{
ClassA *obj = new ClassA();
obj->test(); //"go to definition" on function "test" will go to declaration instead of def.
}
headers_test.h(in headers folder)
class ClassA {
public:
ClassA(){}
int test();
};
"headers_test.cpp(in headers folder)
#include "test.h"
ClassA::test(){
int mm = 0;
}
This is a bug? Are there some ways to resolve this issue?
The text was updated successfully, but these errors were encountered: