@@ -11,7 +11,7 @@ import { VIEW_PANE_ID, ISCMService, ISCMRepository, ISCMViewService } from 'vs/w
11
11
import { IActivityService , NumberBadge } from 'vs/workbench/services/activity/common/activity' ;
12
12
import { IWorkbenchContribution } from 'vs/workbench/common/contributions' ;
13
13
import { IContextKey , IContextKeyService } from 'vs/platform/contextkey/common/contextkey' ;
14
- import { IStatusbarService , StatusbarAlignment as MainThreadStatusBarAlignment } from 'vs/workbench/services/statusbar/browser/statusbar' ;
14
+ import { IStatusbarEntry , IStatusbarService , StatusbarAlignment as MainThreadStatusBarAlignment } from 'vs/workbench/services/statusbar/browser/statusbar' ;
15
15
import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
16
16
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
17
17
import { EditorResourceAccessor } from 'vs/workbench/common/editor' ;
@@ -167,13 +167,18 @@ export class SCMStatusController implements IWorkbenchContribution {
167
167
repoAgnosticActionName = '' ;
168
168
}
169
169
170
- disposables . add ( this . statusbarService . addEntry ( {
170
+ const statusbarEntry : IStatusbarEntry = {
171
171
name : localize ( 'status.scm' , "Source Control" ) + ( repoAgnosticActionName ? ` ${ repoAgnosticActionName } ` : '' ) ,
172
172
text : command . title ,
173
173
ariaLabel : tooltip ,
174
174
tooltip,
175
175
command : command . id ? command : undefined
176
- } , `status.scm.${ index } ` , MainThreadStatusBarAlignment . LEFT , 10000 - index ) ) ;
176
+ } ;
177
+
178
+ disposables . add ( index === 0 ?
179
+ this . statusbarService . addEntry ( statusbarEntry , `status.scm.${ index } ` , MainThreadStatusBarAlignment . LEFT , 10000 ) :
180
+ this . statusbarService . addEntry ( statusbarEntry , `status.scm.${ index } ` , MainThreadStatusBarAlignment . LEFT , { id : `status.scm.${ index - 1 } ` , alignment : MainThreadStatusBarAlignment . RIGHT , compact : true } )
181
+ ) ;
177
182
}
178
183
179
184
this . statusBarDisposable = disposables ;
0 commit comments