This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
GitHub.VisualStudio/Commands Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public class MeasuresModel
7676 public int NumberOfUpstreamsAddedWhenForkingRepo { get ; set ; }
7777 public int NumberOfTrackMasterUpstreamWhenForkingRepo { get ; set ; }
7878 public int NumberOfNavigateToPullRequestFileDiff { get ; set ; }
79+ public int NumberOfNavigateToCodeView { get ; set ; }
7980 public int ExecuteToggleInlineCommentMarginCommand { get ; set ; }
8081 public int NumberOfPullRequestFileMarginToggleInlineCommentMargin { get ; set ; }
8182 public int NumberOfPullRequestFileMarginViewChanges { get ; set ; }
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ public override async Task Execute()
6868 bool isEditableDiff = pullRequestEditorService . Value . IsEditableDiff ( textView ) ;
6969 if ( isEditableDiff )
7070 {
71+ // Navigating from editable diff to code view
72+ await usageTracker . Value . IncrementCounter ( x => x . NumberOfNavigateToCodeView ) ;
73+
7174 // Open active document in Code View
7275 pullRequestEditorService . Value . OpenActiveDocumentInCodeView ( sourceView ) ;
7376 return ;
You can’t perform that action at this time.
0 commit comments