-
Notifications
You must be signed in to change notification settings - Fork 4k
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 implementation command, should view open source code #24559
Comments
This is how the feature works :)
That's because we couldn't find any implementations. If we can't find any implementations there's no "source code of the requested item" we could "open" for you. |
@MohammadHamdyGhanem I assume you want us to decompile the source if there is none to navigate to? |
I suspect the suggestion is that GoToImplementation should download the open-source code (from github or elsewhere on the web, determined somehow) and open that. I wonder if this is something that package/library authors can already achieve, either with source link or embedded source. It's possible that source link works when debugging, but not when simply editing. |
Sorry if I was not clear. @jcouv made it crystal clear. I'm talking about all. Net open source here in github. I was dealing with the Vector class. Documentsion is poor, and trying to open the html page for vector.cs here in github was a nightmare because it's huge. There is no link to download the source code of one class, or even a namespace. I only can download the CoreFX projec! So, I thought what if Vs.net code editor can browse to it directly, but it can't. This samll feather can integrate open source projects with Vs.net, encouraging developers to participate. |
Github can provide a search request url that accepts the full name of a class and returns the link to opebn source file containing it. This way Vs.net code editor can download the requested file and view it, eather in design mode, or in debugging mode. It will be nice if you give us the ability to choose to trace the execution of this source code or just step over it. Also, the code page that results from the "Go to definition" command can have a "goto implementation" command to vieew the source code from there. |
@CyrusNajmabadi @jmarolf @jcouv @jinujoseph |
@MohammadHamdyGhanem I don't see what difference it makes if MS owns Github. |
cc @tmat |
Yes, this should work with SourceLink now. This should be done by individual package owners. |
@CyrusNajmabadi |
Duplicate of #24349 |
@MohammadHamdyGhanem Prior to attempting to decompile, that issue says we should attempt to locate and use the original source code when possible. This includes but isn't limited to sources linked to GitHub. |
Yes. |
@jmarolf BTW, corrected Source Link link in your comment to: http://github.com/dotnet/sourcelink |
@jmarolf Note that SourceLink currently only supports debugging scenarios. It doesn't help the normal editing experience scenarios suggested in this issue at all. |
@sharwell Currently. There is no reason it couldn't be used outside of debugging session. |
Version Used:
VS Community 15.5.1
Steps to Reproduce:
VS code editor has a "Go to implementation" context menu command. I suggest you allow this command to view the open source code of the requested Item. I need to look at the source code frequently, when documentations are poor to understand what is going on. The viewed source code should appear in VS as a code page, and contain a link to the gethub issues page to report any problems or suggestions.
Expected Behavior:
View the open source code.
Actual Behavior:
This sympole has no implementaions
Edit:
I'm talking about all. Net open source here in github. I was dealing with the Vector class. Documentsion is poor, and trying to open the html page for vector.cs here in github was a nightmare because it's huge. There is no link to download the source code of one class, or even a namespace. I only can download the CoreFX projec! So, I thought what if Vs.net code editor can browse to it directly, but it can't. This samll feather can integrate open source projects with Vs.net, encouraging developers to participate.
Github can provide a search request url that accepts the full name of a class and returns the link to opebn source file containing it. This way Vs.net code editor can download the requested file and view it, eather in design mode, or in debugging mode. It will be nice if you give us the ability to choose to trace the execution of this source code or just step over it. Also, the code page that results from the "Go to definition" command can have a "goto implementation" command to vieew the source code from there.
The text was updated successfully, but these errors were encountered: