@@ -35,6 +35,7 @@ public sealed class PullRequestDetailViewModel : PanePageViewModelBase, IPullReq
3535 readonly IPullRequestSessionManager sessionManager ;
3636 readonly IUsageTracker usageTracker ;
3737 readonly ITeamExplorerContext teamExplorerContext ;
38+ readonly IStatusBarNotificationService statusBarNotificationService ;
3839 IModelService modelService ;
3940 IPullRequestModel model ;
4041 string sourceBranchDisplayName ;
@@ -67,19 +68,22 @@ public PullRequestDetailViewModel(
6768 IPullRequestSessionManager sessionManager ,
6869 IModelServiceFactory modelServiceFactory ,
6970 IUsageTracker usageTracker ,
70- ITeamExplorerContext teamExplorerContext )
71+ ITeamExplorerContext teamExplorerContext ,
72+ IStatusBarNotificationService statusBarNotificationService )
7173 {
7274 Guard . ArgumentNotNull ( pullRequestsService , nameof ( pullRequestsService ) ) ;
7375 Guard . ArgumentNotNull ( sessionManager , nameof ( sessionManager ) ) ;
7476 Guard . ArgumentNotNull ( modelServiceFactory , nameof ( modelServiceFactory ) ) ;
7577 Guard . ArgumentNotNull ( usageTracker , nameof ( usageTracker ) ) ;
7678 Guard . ArgumentNotNull ( teamExplorerContext , nameof ( teamExplorerContext ) ) ;
79+ Guard . ArgumentNotNull ( statusBarNotificationService , nameof ( statusBarNotificationService ) ) ;
7780
7881 this . pullRequestsService = pullRequestsService ;
7982 this . sessionManager = sessionManager ;
8083 this . modelServiceFactory = modelServiceFactory ;
8184 this . usageTracker = usageTracker ;
8285 this . teamExplorerContext = teamExplorerContext ;
86+ this . statusBarNotificationService = statusBarNotificationService ;
8387
8488 Checkout = ReactiveCommand . CreateAsyncObservable (
8589 this . WhenAnyValue ( x => x . CheckoutState )
@@ -684,7 +688,11 @@ async Task DoSyncSubmodules(object unused)
684688 usageTracker . IncrementCounter ( x => x . NumberOfSyncSubmodules ) . Forget ( ) ;
685689
686690 var writer = new StringWriter ( CultureInfo . CurrentCulture ) ;
687- var complete = await pullRequestsService . SyncSubmodules ( LocalRepository , writer . WriteLine ) ;
691+ var complete = await pullRequestsService . SyncSubmodules ( LocalRepository , line =>
692+ {
693+ writer . WriteLine ( line ) ;
694+ statusBarNotificationService . ShowMessage ( line ) ;
695+ } ) ;
688696 if ( ! complete )
689697 {
690698 throw new ApplicationException ( writer . ToString ( ) ) ;
@@ -693,6 +701,7 @@ async Task DoSyncSubmodules(object unused)
693701 finally
694702 {
695703 IsBusy = false ;
704+ statusBarNotificationService . ShowMessage ( string . Empty ) ;
696705 }
697706 }
698707
0 commit comments