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

Stop appending hyphen to file link #14

Closed GrahamTheCoder closed 3 years ago

GrahamTheCoder commented 3 years ago

Fixes issue where copying a link just to a file (from solution explorer or tab context menu) appends a hyphen to the link

Only add hypen when there's an endLineNumber

Marked as draft since it is totally untested and could probably do with a test case adding. I'll try to come back and finish it off later when I have time.

veler commented 3 years ago

hello,

It looks great! Thank you so much for this contribution. :)