File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,15 @@ class SyncStatusBar {
6161 }
6262
6363 constructor ( private repository : Repository , private remoteSourceProviderRegistry : IRemoteSourceProviderRegistry ) {
64+ this . _state = {
65+ enabled : true ,
66+ isSyncRunning : false ,
67+ hasRemotes : false ,
68+ HEAD : undefined ,
69+ remoteSourceProviders : this . remoteSourceProviderRegistry . getRemoteProviders ( )
70+ . filter ( p => ! ! p . publishRepository )
71+ } ;
72+
6473 repository . onDidRunGitStatus ( this . onDidRunGitStatus , this , this . disposables ) ;
6574 repository . onDidChangeOperations ( this . onDidChangeOperations , this , this . disposables ) ;
6675
@@ -70,15 +79,6 @@ class SyncStatusBar {
7079 const onEnablementChange = filterEvent ( workspace . onDidChangeConfiguration , e => e . affectsConfiguration ( 'git.enableStatusBarSync' ) ) ;
7180 onEnablementChange ( this . updateEnablement , this , this . disposables ) ;
7281 this . updateEnablement ( ) ;
73-
74- this . _state = {
75- enabled : true ,
76- isSyncRunning : false ,
77- hasRemotes : false ,
78- HEAD : undefined ,
79- remoteSourceProviders : this . remoteSourceProviderRegistry . getRemoteProviders ( )
80- . filter ( p => ! ! p . publishRepository )
81- } ;
8282 }
8383
8484 private updateEnablement ( ) : void {
You can’t perform that action at this time.
0 commit comments