@@ -2515,7 +2515,6 @@ export class SCMViewPane extends ViewPane {
2515
2515
private treeScrollTop : number | undefined ;
2516
2516
private treeContainer ! : HTMLElement ;
2517
2517
private tree ! : WorkbenchCompressibleAsyncDataTree < ISCMViewService , TreeElement , FuzzyScore > ;
2518
- private treeIdentityProvider ! : IIdentityProvider < TreeElement > ;
2519
2518
2520
2519
private listLabels ! : ResourceLabels ;
2521
2520
private inputRenderer ! : InputRenderer ;
@@ -2759,8 +2758,6 @@ export class SCMViewPane extends ViewPane {
2759
2758
const treeDataSource = this . instantiationService . createInstance ( SCMTreeDataSource , ( ) => this . viewMode , ( ) => this . alwaysShowRepositories , ( ) => this . showActionButton , ( ) => this . showIncomingChanges , ( ) => this . showOutgoingChanges ) ;
2760
2759
this . disposables . add ( treeDataSource ) ;
2761
2760
2762
- this . treeIdentityProvider = new SCMResourceIdentityProvider ( ) ;
2763
-
2764
2761
this . tree = this . instantiationService . createInstance (
2765
2762
WorkbenchCompressibleAsyncDataTree ,
2766
2763
'SCM Tree Repo' ,
@@ -2785,7 +2782,7 @@ export class SCMViewPane extends ViewPane {
2785
2782
transformOptimization : false ,
2786
2783
filter : new SCMTreeFilter ( ) ,
2787
2784
dnd : new SCMTreeDragAndDrop ( this . instantiationService ) ,
2788
- identityProvider : this . treeIdentityProvider ,
2785
+ identityProvider : new SCMResourceIdentityProvider ( ) ,
2789
2786
sorter : new SCMTreeSorter ( ( ) => this . viewMode , ( ) => this . viewSortKey ) ,
2790
2787
keyboardNavigationLabelProvider : this . instantiationService . createInstance ( SCMTreeKeyboardNavigationLabelProvider , ( ) => this . viewMode ) ,
2791
2788
overrideStyles : {
@@ -3113,16 +3110,10 @@ export class SCMViewPane extends ViewPane {
3113
3110
3114
3111
if ( element && this . tree . hasNode ( element ) ) {
3115
3112
// Refresh specific repository
3116
- await this . tree . updateChildren ( element , true , false , {
3117
- diffDepth : Infinity ,
3118
- diffIdentityProvider : this . treeIdentityProvider
3119
- } ) ;
3113
+ await this . tree . updateChildren ( element ) ;
3120
3114
} else {
3121
3115
// Refresh the entire tree
3122
- await this . tree . updateChildren ( undefined , true , false , {
3123
- diffDepth : Infinity ,
3124
- diffIdentityProvider : this . treeIdentityProvider
3125
- } ) ;
3116
+ await this . tree . updateChildren ( undefined ) ;
3126
3117
}
3127
3118
3128
3119
if ( focusedInput ) {
0 commit comments