@@ -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 } 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 , Position as SideBarPosition } from 'vs/workbench/services/layout/browser/layoutService' ;
1414import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
@@ -362,7 +362,7 @@ export class ActivitybarPart extends Part implements IActivityBarService {
362362 console . warn ( `Unknown home indicator icon ${ homeIndicator . icon } ` ) ;
363363 codicon = Codicon . code ;
364364 }
365- this . createHomeBar ( homeIndicator . command , homeIndicator . title , codicon ) ;
365+ this . createHomeBar ( homeIndicator . href , homeIndicator . title , codicon ) ;
366366 }
367367
368368 // Install menubar if compact
@@ -383,22 +383,24 @@ export class ActivitybarPart extends Part implements IActivityBarService {
383383 return this . content ;
384384 }
385385
386- private createHomeBar ( command : string , title : string , icon : Codicon ) : void {
386+ private createHomeBar ( href : string , title : string , icon : Codicon ) : void {
387387 this . homeBarContainer = document . createElement ( 'div' ) ;
388388 this . homeBarContainer . setAttribute ( 'aria-label' , nls . localize ( 'homeIndicator' , "Home" ) ) ;
389389 this . homeBarContainer . setAttribute ( 'role' , 'toolbar' ) ;
390390 addClass ( this . homeBarContainer , 'home-bar' ) ;
391391
392392 this . homeBar = this . _register ( new ActionBar ( this . homeBarContainer , {
393393 orientation : ActionsOrientation . VERTICAL ,
394- animated : false
394+ animated : false ,
395+ ariaLabel : nls . localize ( 'home' , "Home" ) ,
396+ actionViewItemProvider : action => new HomeActionViewItem ( action )
395397 } ) ) ;
396398
397399 const homeBarIconBadge = document . createElement ( 'div' ) ;
398400 addClass ( homeBarIconBadge , 'home-bar-icon-badge' ) ;
399401 this . homeBarContainer . appendChild ( homeBarIconBadge ) ;
400402
401- this . homeBar . push ( this . _register ( this . instantiationService . createInstance ( HomeAction , command , title , icon ) ) , { icon : true , label : false } ) ;
403+ this . homeBar . push ( this . _register ( this . instantiationService . createInstance ( HomeAction , href , title , icon ) ) ) ;
402404
403405 const content = assertIsDefined ( this . content ) ;
404406 content . prepend ( this . homeBarContainer ) ;
0 commit comments