Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hide copy/open link when file not hosted on repo. #859
Conversation
Check to see if the current file is located in the active repository and only show "Open on GitHub" and "Copy link to clipboard" context menus if it is. Fixes #530.
|
Looks/works good! |
|
I'm wondering if submodules will complicate this? It looks like we're comparing the path to the active repo in VS rather than the repo the file might be in (if it's in a submodule). |
|
@jcansdale yeah, we don't currently consider submodules when generating links. We should fix this, but it should be a separate PR IMO. Could you add an issue to track? |
|
Seems to work as described! |
Check to see if the current file is located in the active repository and only show "Open on GitHub" and "Copy link to clipboard" context menus if it is.
Fixes #530.