@@ -66,8 +66,8 @@ class SyncStatusBar {
6666 }
6767
6868 constructor ( private repository : Repository ) {
69- repository . onDidRunGitStatus ( this . onModelChange , this , this . disposables ) ;
70- repository . onDidChangeOperations ( this . onOperationsChange , this , this . disposables ) ;
69+ repository . onDidRunGitStatus ( this . onDidRunGitStatus , this , this . disposables ) ;
70+ repository . onDidChangeOperations ( this . onDidChangeOperations , this , this . disposables ) ;
7171
7272 const onEnablementChange = filterEvent ( workspace . onDidChangeConfiguration , e => e . affectsConfiguration ( 'git.enableStatusBarSync' ) ) ;
7373 onEnablementChange ( this . updateEnablement , this , this . disposables ) ;
@@ -83,15 +83,15 @@ class SyncStatusBar {
8383 this . state = { ... this . state , enabled } ;
8484 }
8585
86- private onOperationsChange ( ) : void {
86+ private onDidChangeOperations ( ) : void {
8787 const isSyncRunning = this . repository . operations . isRunning ( Operation . Sync ) ||
8888 this . repository . operations . isRunning ( Operation . Push ) ||
8989 this . repository . operations . isRunning ( Operation . Pull ) ;
9090
9191 this . state = { ...this . state , isSyncRunning } ;
9292 }
9393
94- private onModelChange ( ) : void {
94+ private onDidRunGitStatus ( ) : void {
9595 this . state = {
9696 ...this . state ,
9797 hasRemotes : this . repository . remotes . length > 0 ,
0 commit comments