-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Go to definition in mixed C# and C++/CLI project does not go to source #52806
Comments
This can be supported if C++ plugs into the roslyn mechanism for allowing 'third party navigation'. I'm looking for someone on C++ to pull into the discussion to see if they want to add support for this. |
Tagging @jasonb01 on this. We defer to IVsSymbolicNavigationNotify for this sort of thing. So when we're about to navigate, we call QueryNavigateToSymbol. If some party in VS (lke C++) says: "yup, that can navigate to this file/line" then we defer to that. So it's mostly up to you guys if you want to add support for this. Note that currently this is a COM/non-cancellable call. So it's pretty hard to do well as the receiver has to be able to very quickly determine if it can navigate to the symbol without blocking the UI indefinitely. I would def prefer we move to at least a cancellable form, as well as a non-STA approach if possible here. |
Closing out as this is on C++ to support. |
Dear @CyrusNajmabadi where would this issue need to be raised, to be better fitting? |
I would file it using visual studio. It will go to developercommunity and get routed properly. |
Thanks @CyrusNajmabadi , could you help me there? I filed the issue in the Visual Studio DeveloperCommunity at https://developercommunity.visualstudio.com/t/Intellisense-does-not-navigate-from-C-t/10878849, but they actually pointed me here, saying that the issue is already listed here. But I understand that this here is an off-topic issue, and they should redirect it elsewhere - how can we tell them? |
This issue has been moved from a ticket on Developer Community.
I have a solution which contains
When I ctrl-click an item imported from the C++ project in C# I am taken to the decompiled source from metadata, not the actual source. Debugging into the source works fine, as well as intellisense. It is just the "go to definition" that is not working.
Is there some recommended setup to get the code navigation to work or is it simply not supported?
Thanks
Original Comments
Feedback Bot on 3/12/2020, 02:25 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Sara Liu [MSFT] on 3/17/2020, 11:38 PM:
Thank you for your feedback and taking the time to reach out to us.
According to your description, I tried to test it and got the same result as yours. This issue has been escalated for further investigation, if there is any process, I will inform you immediately.
Original Solutions
Vatsan Madhavan [MSFT] solved on 3/31/2020, 10:45 AM, 1 votes:
This affects a couple of .NET Framework assemblies (PresentationCore.dll, System.Printing.dll for e.g.) and .NET Core assemblies (DirectWriteForwarder.dll, System.Printing.dll).
The text was updated successfully, but these errors were encountered: