@@ -128,7 +128,7 @@ async Task DoOpenFile(IPullRequestFileNode file, bool workingDirectory)
128128 }
129129 }
130130
131- async Task DoOpenLiveFile ( IPullRequestFileNode file )
131+ async Task DoNavigateToEditor ( IPullRequestFileNode file )
132132 {
133133 try
134134 {
@@ -149,12 +149,11 @@ async Task DoOpenLiveFile(IPullRequestFileNode file)
149149
150150 NavigationService . NavigateToEquivalentPosition ( activeView , fullPath ) ;
151151
152- // TODO: Add metrics for NumberOfPRDetailsOpenLiveFile
153- await UsageTracker . IncrementCounter ( x => x . NumberOfPRDetailsOpenFileInSolution ) ;
152+ await UsageTracker . IncrementCounter ( x => x . NumberOfPRDetailsNavigateToEditor ) ;
154153 }
155154 catch ( Exception e )
156155 {
157- ShowErrorInStatusBar ( "Error opening live file " , e ) ;
156+ ShowErrorInStatusBar ( "Error navigating to editor " , e ) ;
158157 }
159158 }
160159
@@ -255,11 +254,11 @@ void EnableNavigateToEditor(IVsTextView textView, IPullRequestFileNode file)
255254 {
256255 var commandGroup = VSConstants . CMDSETID . StandardCommandSet2K_guid ;
257256 var commandId = ( int ) VSConstants . VSStd2KCmdID . RETURN ;
258- new TextViewCommandDispatcher ( textView , commandGroup , commandId ) . Exec += async ( s , e ) => await DoOpenLiveFile ( file ) ;
257+ new TextViewCommandDispatcher ( textView , commandGroup , commandId ) . Exec += async ( s , e ) => await DoNavigateToEditor ( file ) ;
259258
260259 var contextMenuCommandGroup = new Guid ( Guids . guidContextMenuSetString ) ;
261260 var goToCommandId = PkgCmdIDList . openFileInSolutionCommand ;
262- new TextViewCommandDispatcher ( textView , contextMenuCommandGroup , goToCommandId ) . Exec += async ( s , e ) => await DoOpenLiveFile ( file ) ;
261+ new TextViewCommandDispatcher ( textView , contextMenuCommandGroup , goToCommandId ) . Exec += async ( s , e ) => await DoNavigateToEditor ( file ) ;
263262 }
264263
265264 void ShowErrorInStatusBar ( string message , Exception e = null )
0 commit comments