@@ -45,7 +45,7 @@ import { IPartOptions } from 'vs/workbench/browser/part';
45
45
import { StringSHA1 } from 'vs/base/common/hash' ;
46
46
import { URI } from 'vs/base/common/uri' ;
47
47
import { Extensions , IProfileStorageRegistry } from 'vs/workbench/services/userDataProfile/common/userDataProfileStorageRegistry' ;
48
- import { WorkbenchToolBar } from 'vs/platform/actions/ browser/toolbar' ;
48
+ import { ToolBar } from 'vs/base/ browser/ui/toolbar /toolbar' ;
49
49
50
50
interface ICachedPanel {
51
51
id : string ;
@@ -110,7 +110,7 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
110
110
private compositeBar : CompositeBar ;
111
111
private readonly compositeActions = new Map < string , { activityAction : PanelActivityAction ; pinnedAction : ToggleCompositePinnedAction } > ( ) ;
112
112
113
- private globalToolBar : WorkbenchToolBar | undefined ;
113
+ private globalToolBar : ToolBar | undefined ;
114
114
private globalActions : CompositeMenuActions ;
115
115
116
116
private readonly panelDisposables : Map < string , IDisposable > = new Map < string , IDisposable > ( ) ;
@@ -549,13 +549,12 @@ export abstract class BasePanelPart extends CompositePart<PaneComposite> impleme
549
549
const globalTitleActionsContainer = element . appendChild ( $ ( '.global-actions' ) ) ;
550
550
551
551
// Global Actions Toolbar
552
- this . globalToolBar = this . _register ( this . instantiationService . createInstance ( WorkbenchToolBar , globalTitleActionsContainer , {
552
+ this . globalToolBar = this . _register ( new ToolBar ( globalTitleActionsContainer , this . contextMenuService , {
553
553
actionViewItemProvider : action => this . actionViewItemProvider ( action ) ,
554
554
orientation : ActionsOrientation . HORIZONTAL ,
555
555
getKeyBinding : action => this . keybindingService . lookupKeybinding ( action . id ) ,
556
556
anchorAlignmentProvider : ( ) => this . getTitleAreaDropDownAnchorAlignment ( ) ,
557
- toggleMenuTitle : localize ( 'moreActions' , "More Actions..." ) ,
558
- resetMenu : this . globalActions . menuId
557
+ toggleMenuTitle : localize ( 'moreActions' , "More Actions..." )
559
558
} ) ) ;
560
559
561
560
this . updateGlobalToolbarActions ( ) ;
0 commit comments