@@ -40,7 +40,7 @@ export class Repository {
4040 public isUpdatingRevision : boolean = false ;
4141 public branches : any [ ] = [ ] ;
4242 public branchesTimer : NodeJS . Timer ;
43- public newsCommit : number = 0 ;
43+ public newCommits : number = 0 ;
4444
4545 private _onDidChangeRepository = new EventEmitter < Uri > ( ) ;
4646 readonly onDidChangeRepository : Event < Uri > = this . _onDidChangeRepository
@@ -52,8 +52,8 @@ export class Repository {
5252 private _onDidChangeBranch = new EventEmitter < void > ( ) ;
5353 readonly onDidChangeBranch : Event < void > = this . _onDidChangeBranch . event ;
5454
55- private _onDidChangeNewsCommit = new EventEmitter < void > ( ) ;
56- readonly onDidChangeNewsCommit : Event < void > = this . _onDidChangeNewsCommit
55+ private _onDidChangeNewCommits = new EventEmitter < void > ( ) ;
56+ readonly onDidChangeNewCommits : Event < void > = this . _onDidChangeNewCommits
5757 . event ;
5858
5959 get root ( ) : string {
@@ -171,15 +171,15 @@ export class Repository {
171171 } , 1000 * 60 * updateFreq ) ;
172172 }
173173
174- const updateFreqNews = svnConfig . get < number > ( "svn.newsCommits .update" ) ;
175- if ( updateFreqNews ) {
174+ const updateFreqNewCommits = svnConfig . get < number > ( "svn.newCommits .update" ) ;
175+ if ( updateFreqNewCommits ) {
176176 setInterval ( ( ) => {
177- this . updateNewsCommits ( ) ;
178- } , 1000 * 60 * updateFreqNews ) ;
177+ this . updateNewCommits ( ) ;
178+ } , 1000 * 60 * updateFreqNewCommits ) ;
179179 }
180180
181181 this . updateBranches ( ) ;
182- this . updateNewsCommits ( ) ;
182+ this . updateNewCommits ( ) ;
183183 this . update ( ) ;
184184 }
185185
@@ -193,11 +193,11 @@ export class Repository {
193193 }
194194
195195 @debounce ( 1000 )
196- async updateNewsCommits ( ) {
197- const newsCommit = await this . repository . countNewsCommit ( ) ;
198- if ( newsCommit !== this . newsCommit ) {
199- this . newsCommit = newsCommit ;
200- this . _onDidChangeNewsCommit . fire ( ) ;
196+ async updateNewCommits ( ) {
197+ const newCommits = await this . repository . countNewCommits ( ) ;
198+ if ( newCommits !== this . newCommits ) {
199+ this . newCommits = newCommits ;
200+ this . _onDidChangeNewCommits . fire ( ) ;
201201 }
202202 }
203203
@@ -385,7 +385,7 @@ export class Repository {
385385 this . isSwitchingBranch = false ;
386386 this . updateBranches ( ) ;
387387 this . _onDidChangeBranch . fire ( ) ;
388- this . updateNewsCommits ( )
388+ this . updateNewCommits ( )
389389 return response ;
390390 }
391391
@@ -410,15 +410,15 @@ export class Repository {
410410 this . isSwitchingBranch = false ;
411411 this . updateBranches ( ) ;
412412 this . _onDidChangeBranch . fire ( ) ;
413- this . updateNewsCommits ( )
413+ this . updateNewCommits ( )
414414 }
415415 }
416416
417417 async updateRevision ( ) {
418418 this . isUpdatingRevision = true ;
419419 const response = await this . repository . update ( ) ;
420420 this . isUpdatingRevision = false ;
421- this . updateNewsCommits ( ) ;
421+ this . updateNewCommits ( ) ;
422422 return response ;
423423 }
424424
0 commit comments