@@ -10,28 +10,28 @@ import URI from 'vs/base/common/uri';
1010import Event , { Emitter } from 'vs/base/common/event' ;
1111import { assign } from 'vs/base/common/objects' ;
1212import { IDisposable , dispose } from 'vs/base/common/lifecycle' ;
13- import { ISCMService , ISCMRepository , ISCMProvider , ISCMResource , ISCMResourceGroup , ISCMResourceDecorations , ISCMResourceCollection } from 'vs/workbench/services/scm/common/scm' ;
13+ import { ISCMService , ISCMRepository , ISCMProvider , ISCMResource , ISCMResourceGroup , ISCMResourceDecorations } from 'vs/workbench/services/scm/common/scm' ;
1414import { ExtHostContext , MainThreadSCMShape , ExtHostSCMShape , SCMProviderFeatures , SCMRawResourceSplices , SCMGroupFeatures , MainContext , IExtHostContext } from '../node/extHost.protocol' ;
1515import { Command } from 'vs/editor/common/modes' ;
1616import { extHostNamedCustomer } from 'vs/workbench/api/electron-browser/extHostCustomers' ;
17- import { ISplice } from 'vs/base/common/sequence' ;
17+ import { ISplice , ISequence } from 'vs/base/common/sequence' ;
1818
19- class MainThreadSCMResourceCollection implements ISCMResourceCollection {
19+ class MainThreadSCMResourceCollection implements ISequence < ISCMResource > {
2020
21- readonly resources : ISCMResource [ ] = [ ] ;
21+ readonly elements : ISCMResource [ ] = [ ] ;
2222
2323 private _onDidSplice = new Emitter < ISplice < ISCMResource > > ( ) ;
2424 readonly onDidSplice = this . _onDidSplice . event ;
2525
2626 splice ( start : number , deleteCount : number , toInsert : ISCMResource [ ] ) {
27- this . resources . splice ( start , deleteCount , ...toInsert ) ;
27+ this . elements . splice ( start , deleteCount , ...toInsert ) ;
2828 this . _onDidSplice . fire ( { start, deleteCount, toInsert } ) ;
2929 }
3030}
3131
3232class MainThreadSCMResourceGroup implements ISCMResourceGroup {
3333
34- readonly resourceCollection = new MainThreadSCMResourceCollection ( ) ;
34+ readonly resources = new MainThreadSCMResourceCollection ( ) ;
3535 get hideWhenEmpty ( ) : boolean { return this . features . hideWhenEmpty ; }
3636
3737 constructor (
@@ -89,7 +89,7 @@ class MainThreadSCMProvider implements ISCMProvider {
8989
9090 get resources ( ) : ISCMResourceGroup [ ] {
9191 return this . _groups
92- . filter ( g => g . resourceCollection . resources . length > 0 || ! g . features . hideWhenEmpty ) ;
92+ . filter ( g => g . resources . elements . length > 0 || ! g . features . hideWhenEmpty ) ;
9393 }
9494
9595 private _onDidChangeResources = new Emitter < void > ( ) ;
@@ -206,7 +206,7 @@ class MainThreadSCMProvider implements ISCMProvider {
206206 ) ;
207207 } ) ;
208208
209- group . resourceCollection . splice ( start , deleteCount , resources ) ;
209+ group . resources . splice ( start , deleteCount , resources ) ;
210210 }
211211 }
212212
0 commit comments