@@ -8,7 +8,7 @@ import * as nls from 'vs/nls';
88import { ActionsOrientation , ActionBar } from 'vs/base/browser/ui/actionbar/actionbar' ;
99import { GLOBAL_ACTIVITY_ID , IActivity , ACCOUNTS_ACTIIVTY_ID } from 'vs/workbench/common/activity' ;
1010import { Part } from 'vs/workbench/browser/part' ;
11- import { GlobalActivityActionViewItem , ViewContainerActivityAction , PlaceHolderToggleCompositePinnedAction , PlaceHolderViewContainerActivityAction , AccountsActionViewItem , HomeAction , HomeActionViewItem , DeprecatedHomeAction } from 'vs/workbench/browser/parts/activitybar/activitybarActions' ;
11+ import { GlobalActivityActionViewItem , ViewContainerActivityAction , PlaceHolderToggleCompositePinnedAction , PlaceHolderViewContainerActivityAction , AccountsActionViewItem , HomeAction , HomeActionViewItem } from 'vs/workbench/browser/parts/activitybar/activitybarActions' ;
1212import { IBadge , NumberBadge } from 'vs/workbench/services/activity/common/activity' ;
1313import { IWorkbenchLayoutService , Parts } from 'vs/workbench/services/layout/browser/layoutService' ;
1414import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
@@ -400,7 +400,8 @@ export class ActivitybarPart extends Part implements IActivityBarService {
400400 console . warn ( `Unknown home indicator icon ${ homeIndicator . icon } ` ) ;
401401 codicon = Codicon . code ;
402402 }
403- this . createHomeBar ( homeIndicator . href , homeIndicator . command , homeIndicator . title , codicon ) ;
403+
404+ this . createHomeBar ( homeIndicator . href , homeIndicator . title , codicon ) ;
404405 this . onDidChangeHomeBarVisibility ( ) ;
405406 }
406407
@@ -422,7 +423,7 @@ export class ActivitybarPart extends Part implements IActivityBarService {
422423 return this . content ;
423424 }
424425
425- private createHomeBar ( href : string , command : string | undefined , title : string , icon : Codicon ) : void {
426+ private createHomeBar ( href : string , title : string , icon : Codicon ) : void {
426427 this . homeBarContainer = document . createElement ( 'div' ) ;
427428 this . homeBarContainer . setAttribute ( 'aria-label' , nls . localize ( 'homeIndicator' , "Home" ) ) ;
428429 this . homeBarContainer . setAttribute ( 'role' , 'toolbar' ) ;
@@ -432,19 +433,14 @@ export class ActivitybarPart extends Part implements IActivityBarService {
432433 orientation : ActionsOrientation . VERTICAL ,
433434 animated : false ,
434435 ariaLabel : nls . localize ( 'home' , "Home" ) ,
435- actionViewItemProvider : command ? undefined : action => new HomeActionViewItem ( action ) ,
436+ actionViewItemProvider : action => new HomeActionViewItem ( action ) ,
436437 allowContextMenu : true
437438 } ) ) ;
438439
439440 const homeBarIconBadge = document . createElement ( 'div' ) ;
440441 addClass ( homeBarIconBadge , 'home-bar-icon-badge' ) ;
441442 this . homeBarContainer . appendChild ( homeBarIconBadge ) ;
442-
443- if ( command ) {
444- this . homeBar . push ( this . _register ( this . instantiationService . createInstance ( DeprecatedHomeAction , command , title , icon ) ) , { icon : true , label : false } ) ;
445- } else {
446- this . homeBar . push ( this . _register ( this . instantiationService . createInstance ( HomeAction , href , title , icon ) ) ) ;
447- }
443+ this . homeBar . push ( this . _register ( this . instantiationService . createInstance ( HomeAction , href , title , icon ) ) ) ;
448444
449445 const content = assertIsDefined ( this . content ) ;
450446 content . prepend ( this . homeBarContainer ) ;
0 commit comments