Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add some instrumentation #1744
Description of the Change
This PR adds reporting metrics for cloning repos, as well as various context menu actions within the package.
This implementation listens to all command dispatch event, filters out the ones triggered via context menus, and acts upon them. The drawback is that it won't be clear exactly which context menu was used to trigger that command. An alternative approach would be to hook into each event we're interested in individually, and reports back if the event came from a context menu, and which one. But this approach would result in the same code scattered all over the place, which isn't ideal either.
We can know how much usage context menus get, how discoverable the
I only added tests for the clone repo instrumentation, but not the context menu ones as I can't think of how one can test context menus in our situation.