@@ -116,11 +116,10 @@ export class GitService extends Disposable {
116116
117117 this . _onConfigurationChanged ( ) ;
118118
119- const subscriptions : Disposable [ ] = [ ] ;
120-
121- subscriptions . push ( workspace . onDidChangeConfiguration ( this . _onConfigurationChanged , this ) ) ;
122- subscriptions . push ( RemoteProviderFactory . onDidChange ( this . _onRemoteProviderChanged , this ) ) ;
123-
119+ const subscriptions : Disposable [ ] = [
120+ workspace . onDidChangeConfiguration ( this . _onConfigurationChanged , this ) ,
121+ RemoteProviderFactory . onDidChange ( this . _onRemoteProviderChanged , this )
122+ ] ;
124123 this . _disposable = Disposable . from ( ...subscriptions ) ;
125124 }
126125
@@ -156,16 +155,15 @@ export class GitService extends Disposable {
156155
157156 this . _repoWatcher = this . _repoWatcher || workspace . createFileSystemWatcher ( '**/.git/{index,HEAD,refs/stash,refs/heads/**,refs/remotes/**}' ) ;
158157
159- const disposables : Disposable [ ] = [ ] ;
160-
161- disposables . push ( workspace . onDidCloseTextDocument ( d => this . _removeCachedEntry ( d , RemoveCacheReason . DocumentClosed ) ) ) ;
162- disposables . push ( workspace . onDidChangeTextDocument ( this . _onTextDocumentChanged , this ) ) ;
163- disposables . push ( workspace . onDidSaveTextDocument ( d => this . _removeCachedEntry ( d , RemoveCacheReason . DocumentSaved ) ) ) ;
164- disposables . push ( this . _repoWatcher . onDidChange ( this . _onRepoChanged , this ) ) ;
165- disposables . push ( this . _repoWatcher . onDidCreate ( this . _onRepoChanged , this ) ) ;
166- disposables . push ( this . _repoWatcher . onDidDelete ( this . _onRepoChanged , this ) ) ;
167-
168- this . _cacheDisposable = Disposable . from ( ...disposables ) ;
158+ const subscriptions : Disposable [ ] = [
159+ workspace . onDidCloseTextDocument ( d => this . _removeCachedEntry ( d , RemoveCacheReason . DocumentClosed ) ) ,
160+ workspace . onDidChangeTextDocument ( this . _onTextDocumentChanged , this ) ,
161+ workspace . onDidSaveTextDocument ( d => this . _removeCachedEntry ( d , RemoveCacheReason . DocumentSaved ) ) ,
162+ this . _repoWatcher . onDidChange ( this . _onRepoChanged , this ) ,
163+ this . _repoWatcher . onDidCreate ( this . _onRepoChanged , this ) ,
164+ this . _repoWatcher . onDidDelete ( this . _onRepoChanged , this )
165+ ] ;
166+ this . _cacheDisposable = Disposable . from ( ...subscriptions ) ;
169167 }
170168 else {
171169 this . _cacheDisposable && this . _cacheDisposable . dispose ( ) ;
0 commit comments