@@ -58,7 +58,7 @@ export class Repository {
5858 public statusBar : SvnStatusBar ;
5959 public changes : ISvnResourceGroup ;
6060 public unversioned : ISvnResourceGroup ;
61- public remoteChanged ?: ISvnResourceGroup ;
61+ public remoteChanges ?: Resource [ ] ;
6262 public changelists : Map < string , ISvnResourceGroup > = new Map ( ) ;
6363 public conflicts : ISvnResourceGroup ;
6464 public statusIgnored : IFileStatus [ ] = [ ] ;
@@ -122,8 +122,8 @@ export class Repository {
122122 group . resourceStates = [ ] ;
123123 } ) ;
124124
125- if ( this . remoteChanged ) {
126- this . remoteChanged . dispose ( ) ;
125+ if ( this . remoteChanges ) {
126+ this . remoteChanges = [ ] ;
127127 }
128128
129129 this . isIncomplete = false ;
@@ -321,7 +321,7 @@ export class Repository {
321321 const external : any [ ] = [ ] ;
322322 const conflicts : any [ ] = [ ] ;
323323 const changelists : Map < string , Resource [ ] > = new Map ( ) ;
324- const remoteChanged : any [ ] = [ ] ;
324+ const remoteChanges : any [ ] = [ ] ;
325325
326326 this . statusExternal = [ ] ;
327327 this . statusIgnored = [ ] ;
@@ -406,7 +406,7 @@ export class Repository {
406406 : undefined ;
407407
408408 if ( status . reposStatus ) {
409- remoteChanged . push (
409+ remoteChanges . push (
410410 new Resource (
411411 uri ,
412412 status . reposStatus . item ,
@@ -515,18 +515,14 @@ export class Repository {
515515 /**
516516 * Destroy and create for keep at last position
517517 */
518- if ( this . remoteChanged ) {
519- this . remoteChanged . dispose ( ) ;
518+ if ( this . remoteChanges ) {
519+ this . remoteChanges = [ ] ;
520520 }
521- this . remoteChanged = this . sourceControl . createResourceGroup (
522- "remotechanged" ,
523- "Remote Changes"
524- ) as ISvnResourceGroup ;
525- this . remoteChanged . hideWhenEmpty = true ;
526- this . remoteChanged . resourceStates = remoteChanged ;
527-
528- if ( remoteChanged . length !== this . remoteChangedFiles ) {
529- this . remoteChangedFiles = remoteChanged . length ;
521+
522+ this . remoteChanges = remoteChanges ;
523+
524+ if ( remoteChanges . length !== this . remoteChangedFiles ) {
525+ this . remoteChangedFiles = remoteChanges . length ;
530526 this . _onDidChangeRemoteChangedFiles . fire ( ) ;
531527 }
532528 }
0 commit comments