-
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
Can't go to the static method of a class #635
Comments
It works for me. Can you try Can you give more repro details? Are other methods of the class found? Does it find the wrong symbol? Maybe something else in the class definition is causing a failure. What OS are you on? |
Glad for yours response! I just write a demo(See the attach): thank you. |
Thanks for the repro -- namespace::class:: works but class:: alone doesn't. |
yes, i meet this too, can't goto class::my_struct. (^__^) …… In Expectation your solution, |
Haha , This issue is fixed in Vscode 1.16.0 |
The bug still exists when the IntelliSense engine is set to "Tag Parser". You probably are using the "Default" implementation, which doesn't have the bug. So the bug isn't really fixed, but using the Default intelliSense engine setting is recommended anyway. |
Hello, sean-mcmanus |
@AbelaroJiang The bug was never fixed for the Tag Parser. Are you using the "Default" IntelliSense engine (which shouldn't have this bug) or are you able to switch to using that? If you have #include files that aren't found in the translation unit it will fall back to the Tag Parser (if the intelliSenseFallback is enabled). |
Yes, I use the default IntelliSense engine. |
Go to Definition is still implemented by the Tag Parser so the bug still existed. When you said it stopped reproing, I got this issue confused with another bug that stops reproing when switching to the Default IntelliSense. I've made a change that fixes this issue, but I'm not sure if it will make the next update or not. FYI, autocomplete and signatureHelp were also broken in this scenario (whenever code was only partially scoped, with some scopes missing on the left). Thanks a lot for reporting this issue. I'm sort of shocked that this scenario has been broken for so long. |
This has been fixed in 0.13.0 |
We can't go to the definition when view a static method of a class, such as:
MainSrvProcessor::clientAskPVEEndReqProcessor;
we can't find the definition of clientAskPVEEndReqProcessor method by press key F12.
please help me to check this and fix it. thanks.
The text was updated successfully, but these errors were encountered: