tejanium / vscode-copy-github-permalink

Copy Github's permalink in VS Code
3 stars 3 forks source link

Feature request: inverse operation, start with a GitHub URL which contains hash line number(s), and open the file in VSCode at the designated line / code selection #58

Open danielweck opened 4 years ago

danielweck commented 4 years ago

Hello, great extension, thank you! Very useful for code peer reviews over Slack / instant messaging, to exchange URLs whilst working locally from VSCode. However the inverse functionality would be very useful too.

For example I would like to be able to copy such URL: https://github.com/tejanium/vscode-copy-github-permalink/blob/71ee415913b78d6a54839457cc3b3cba89eafa35/src/api/git.ts#L3-L5

https://github.com/tejanium/vscode-copy-github-permalink/blob/71ee415913b78d6a54839457cc3b3cba89eafa35/src/api/git.ts#L3-L5

...and to show src/api/git.ts in VSCode with the code selection line 3-5 (extracted from the URL #L3-L5).

Any thoughts?

tejanium commented 4 years ago

Sounds good and should be straightforward to implement, will look into this