@@ -17,6 +17,10 @@ export class StatusNode extends ExplorerNode {
1717 super ( uri ) ;
1818 }
1919
20+ get id ( ) : string {
21+ return `gitlens:repository(${ this . repo . path } )${ this . active ? ':active' : '' } :status` ;
22+ }
23+
2024 async getChildren ( ) : Promise < ExplorerNode [ ] > {
2125 this . resetChildren ( ) ;
2226
@@ -26,18 +30,18 @@ export class StatusNode extends ExplorerNode {
2630 this . children = [ ] ;
2731
2832 if ( status . state . behind ) {
29- this . children . push ( new StatusUpstreamNode ( status , 'behind' , this . explorer ) ) ;
33+ this . children . push ( new StatusUpstreamNode ( status , 'behind' , this . explorer , this . active ) ) ;
3034 }
3135
3236 if ( status . state . ahead ) {
33- this . children . push ( new StatusUpstreamNode ( status , 'ahead' , this . explorer ) ) ;
37+ this . children . push ( new StatusUpstreamNode ( status , 'ahead' , this . explorer , this . active ) ) ;
3438 }
3539
3640 if ( status . state . ahead || ( status . files . length !== 0 && this . includeWorkingTree ) ) {
3741 const range = status . upstream
3842 ? `${ status . upstream } ..${ status . branch } `
3943 : undefined ;
40- this . children . push ( new StatusFilesNode ( status , range , this . explorer ) ) ;
44+ this . children . push ( new StatusFilesNode ( status , range , this . explorer , this . active ) ) ;
4145 }
4246
4347 return this . children ;
@@ -99,6 +103,7 @@ export class StatusNode extends ExplorerNode {
99103 }
100104
101105 const item = new TreeItem ( label , state ) ;
106+ item . id = this . id ;
102107 item . contextValue = ResourceType . Status ;
103108
104109 item . iconPath = {
0 commit comments