@@ -1295,7 +1295,6 @@ class SeparatorRenderer implements ICompressibleTreeRenderer<SCMViewSeparatorEle
1295
1295
@IContextKeyService private readonly contextKeyService : IContextKeyService ,
1296
1296
@IContextMenuService private readonly contextMenuService : IContextMenuService ,
1297
1297
@IKeybindingService private readonly keybindingService : IKeybindingService ,
1298
- @IConfigurationService private readonly configurationService : IConfigurationService ,
1299
1298
@ICommandService private readonly commandService : ICommandService ,
1300
1299
@IMenuService private readonly menuService : IMenuService ,
1301
1300
@ITelemetryService private readonly telemetryService : ITelemetryService
@@ -1314,8 +1313,7 @@ class SeparatorRenderer implements ICompressibleTreeRenderer<SCMViewSeparatorEle
1314
1313
append ( element , $ ( '.separator' ) ) ;
1315
1314
templateDisposables . add ( label ) ;
1316
1315
1317
- const options = { moreIcon : this . configurationService . getValue < boolean > ( 'scm.experimental.showHistoryGraph' ) === true ? Codicon . more : Codicon . gear } satisfies IMenuWorkbenchToolBarOptions ;
1318
- const toolBar = new WorkbenchToolBar ( append ( element , $ ( '.actions' ) ) , options , this . menuService , this . contextKeyService , this . contextMenuService , this . keybindingService , this . commandService , this . telemetryService ) ;
1316
+ const toolBar = new WorkbenchToolBar ( append ( element , $ ( '.actions' ) ) , undefined , this . menuService , this . contextKeyService , this . contextMenuService , this . keybindingService , this . commandService , this . telemetryService ) ;
1319
1317
templateDisposables . add ( toolBar ) ;
1320
1318
1321
1319
return { label, toolBar, elementDisposables : new DisposableStore ( ) , templateDisposables } ;
@@ -1739,7 +1737,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
1739
1737
MenuRegistry . appendMenuItem ( MenuId . SCMTitle , {
1740
1738
title : localize ( 'scmChanges' , "Incoming & Outgoing" ) ,
1741
1739
submenu : Menus . ChangesSettings ,
1742
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'view' , VIEW_PANE_ID ) , ContextKeys . RepositoryCount . notEqualsTo ( 0 ) , ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , true ) . negate ( ) ) ,
1740
+ when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'view' , VIEW_PANE_ID ) , ContextKeys . RepositoryCount . notEqualsTo ( 0 ) , ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , true ) . negate ( ) ) ,
1743
1741
group : '0_view&sort' ,
1744
1742
order : 2
1745
1743
} ) ;
@@ -1774,15 +1772,15 @@ MenuRegistry.appendMenuItem(MenuId.SCMChangesSeparator, {
1774
1772
submenu : MenuId . SCMIncomingChangesSetting ,
1775
1773
group : '1_incoming&outgoing' ,
1776
1774
order : 1 ,
1777
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1775
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1778
1776
} ) ;
1779
1777
1780
1778
MenuRegistry . appendMenuItem ( Menus . ChangesSettings , {
1781
1779
title : localize ( 'incomingChanges' , "Show Incoming Changes" ) ,
1782
1780
submenu : MenuId . SCMIncomingChangesSetting ,
1783
1781
group : '1_incoming&outgoing' ,
1784
1782
order : 1 ,
1785
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1783
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1786
1784
} ) ;
1787
1785
1788
1786
registerAction2 ( class extends SCMChangesSettingAction {
@@ -1827,15 +1825,15 @@ MenuRegistry.appendMenuItem(MenuId.SCMChangesSeparator, {
1827
1825
submenu : MenuId . SCMOutgoingChangesSetting ,
1828
1826
group : '1_incoming&outgoing' ,
1829
1827
order : 2 ,
1830
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1828
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1831
1829
} ) ;
1832
1830
1833
1831
MenuRegistry . appendMenuItem ( Menus . ChangesSettings , {
1834
1832
title : localize ( 'outgoingChanges' , "Show Outgoing Changes" ) ,
1835
1833
submenu : MenuId . SCMOutgoingChangesSetting ,
1836
1834
group : '1_incoming&outgoing' ,
1837
1835
order : 2 ,
1838
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1836
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1839
1837
} ) ;
1840
1838
1841
1839
registerAction2 ( class extends SCMChangesSettingAction {
@@ -1889,12 +1887,12 @@ registerAction2(class extends Action2 {
1889
1887
{
1890
1888
id : MenuId . SCMChangesSeparator ,
1891
1889
order : 3 ,
1892
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1890
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1893
1891
} ,
1894
1892
{
1895
1893
id : Menus . ChangesSettings ,
1896
1894
order : 3 ,
1897
- when : ContextKeyExpr . equals ( 'config.scm.experimental. showHistoryGraph' , false )
1895
+ when : ContextKeyExpr . equals ( 'config.scm.showHistoryGraph' , false )
1898
1896
} ,
1899
1897
]
1900
1898
} ) ;
@@ -3143,7 +3141,7 @@ export class SCMViewPane extends ViewPane {
3143
3141
e . affectsConfiguration ( 'scm.showActionButton' ) ||
3144
3142
e . affectsConfiguration ( 'scm.showIncomingChanges' ) ||
3145
3143
e . affectsConfiguration ( 'scm.showOutgoingChanges' ) ||
3146
- e . affectsConfiguration ( 'scm.experimental. showHistoryGraph' ) ,
3144
+ e . affectsConfiguration ( 'scm.showHistoryGraph' ) ,
3147
3145
this . visibilityDisposables )
3148
3146
( ( ) => this . updateChildren ( ) , this , this . visibilityDisposables ) ;
3149
3147
@@ -4176,7 +4174,7 @@ class SCMTreeHistoryProviderDataSource extends Disposable {
4176
4174
showChangesSummary : this . configurationService . getValue < boolean > ( 'scm.showChangesSummary' ) ,
4177
4175
showIncomingChanges : this . configurationService . getValue < ShowChangesSetting > ( 'scm.showIncomingChanges' ) ,
4178
4176
showOutgoingChanges : this . configurationService . getValue < ShowChangesSetting > ( 'scm.showOutgoingChanges' ) ,
4179
- showHistoryGraph : this . configurationService . getValue < boolean > ( 'scm.experimental. showHistoryGraph' )
4177
+ showHistoryGraph : this . configurationService . getValue < boolean > ( 'scm.showHistoryGraph' )
4180
4178
} ;
4181
4179
}
4182
4180
}
0 commit comments