@@ -479,41 +479,49 @@ function appendEditorToolItem(primary: IEditorToolItem, when: ContextKeyExpr | u
479
479
MenuRegistry . appendMenuItem ( MenuId . EditorTitle , item ) ;
480
480
}
481
481
482
+ const SPLIT_EDITOR_HORIZONTAL_DARK_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-dark.svg' ) ) ;
483
+ const SPLIT_EDITOR_HORIZONTAL_LIGHT_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-light.svg' ) ) ;
484
+ const SPLIT_EDITOR_VERTICAL_DARK_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-dark.svg' ) ) ;
485
+ const SPLIT_EDITOR_VERTICAL_LIGHT_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-light.svg' ) ) ;
486
+
482
487
// Editor Title Menu: Split Editor
483
488
appendEditorToolItem (
484
489
{
485
490
id : SplitEditorAction . ID ,
486
491
title : nls . localize ( 'splitEditorRight' , "Split Editor Right" ) ,
487
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-dark.svg' ) ) ,
488
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-light.svg' ) )
492
+ iconDark : SPLIT_EDITOR_HORIZONTAL_DARK_ICON ,
493
+ iconLight : SPLIT_EDITOR_HORIZONTAL_LIGHT_ICON
489
494
} ,
490
495
ContextKeyExpr . not ( 'splitEditorsVertically' ) ,
491
496
100000 , // towards the end
492
497
{
493
498
id : editorCommands . SPLIT_EDITOR_DOWN ,
494
499
title : nls . localize ( 'splitEditorDown' , "Split Editor Down" ) ,
495
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-dark.svg' ) ) ,
496
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-light.svg' ) )
500
+ iconDark : SPLIT_EDITOR_VERTICAL_DARK_ICON ,
501
+ iconLight : SPLIT_EDITOR_VERTICAL_LIGHT_ICON
497
502
}
498
503
) ;
499
504
500
505
appendEditorToolItem (
501
506
{
502
507
id : SplitEditorAction . ID ,
503
508
title : nls . localize ( 'splitEditorDown' , "Split Editor Down" ) ,
504
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-dark.svg' ) ) ,
505
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-vertical-light.svg' ) )
509
+ iconDark : SPLIT_EDITOR_VERTICAL_DARK_ICON ,
510
+ iconLight : SPLIT_EDITOR_VERTICAL_LIGHT_ICON
506
511
} ,
507
512
ContextKeyExpr . has ( 'splitEditorsVertically' ) ,
508
513
100000 , // towards the end
509
514
{
510
515
id : editorCommands . SPLIT_EDITOR_RIGHT ,
511
516
title : nls . localize ( 'splitEditorRight' , "Split Editor Right" ) ,
512
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-dark.svg' ) ) ,
513
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/split-editor-horizontal-light.svg' ) )
517
+ iconDark : SPLIT_EDITOR_HORIZONTAL_DARK_ICON ,
518
+ iconLight : SPLIT_EDITOR_HORIZONTAL_LIGHT_ICON
514
519
}
515
520
) ;
516
521
522
+ const CLOSE_ALL_DARK_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-dark.svg' ) ) ;
523
+ const CLOSE_ALL_LIGHT_ICON = URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-light.svg' ) ) ;
524
+
517
525
// Editor Title Menu: Close Group (tabs disabled)
518
526
appendEditorToolItem (
519
527
{
@@ -527,8 +535,8 @@ appendEditorToolItem(
527
535
{
528
536
id : editorCommands . CLOSE_EDITORS_IN_GROUP_COMMAND_ID ,
529
537
title : nls . localize ( 'closeAll' , "Close All" ) ,
530
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-dark.svg' ) ) ,
531
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-light.svg' ) )
538
+ iconDark : CLOSE_ALL_DARK_ICON ,
539
+ iconLight : CLOSE_ALL_LIGHT_ICON
532
540
}
533
541
) ;
534
542
@@ -544,8 +552,8 @@ appendEditorToolItem(
544
552
{
545
553
id : editorCommands . CLOSE_EDITORS_IN_GROUP_COMMAND_ID ,
546
554
title : nls . localize ( 'closeAll' , "Close All" ) ,
547
- iconDark : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-dark.svg' ) ) ,
548
- iconLight : URI . parse ( registerAndGetAmdImageURL ( 'vs/workbench/browser/parts/editor/media/close-all-light.svg' ) )
555
+ iconDark : CLOSE_ALL_DARK_ICON ,
556
+ iconLight : CLOSE_ALL_LIGHT_ICON
549
557
}
550
558
) ;
551
559
0 commit comments