veler / CopyGitLink

Copy links to files or selections to GitHub and Azure DevOps directly from Visual Studio's text editor, Solution Explorer and document tab.
https://marketplace.visualstudio.com/items?itemName=EtienneBAUDOUX.CopyGitLink
MIT License
44 stars 9 forks source link

Submodules not recognized #20

Open asherber opened 1 year ago

asherber commented 1 year ago

I have a project set up with submodules installed in a submodules folder. When I try to copy a link to a file/method/line in the submodule, I get a link like this:

https://github.com/my-project/blob/4467681febf6e48c347a2d50602d88c7f8395ca8/submodules/my-submodule/Globals.cs

It looks like the extension is using the URL of the remote from the superproject and then tagging on the physical file path. It would be nice if the extension could recognize that a file is in a submodule and correctly calculate the URL in the submodule's repo.