diff --git a/src/vs/workbench/browser/parts/panel/panelPart.ts b/src/vs/workbench/browser/parts/panel/panelPart.ts index b1237f6d71c414610cf1e8995ca7384786f909a0..c48e258ae9be0a8baf2fd7dc71cd611121fd9c7c 100644 --- a/src/vs/workbench/browser/parts/panel/panelPart.ts +++ b/src/vs/workbench/browser/parts/panel/panelPart.ts @@ -135,10 +135,9 @@ class TogglePanelAction extends Action { constructor( id: string, name: string, - @IPartService private partService: IPartService, - @IWorkspaceContextService contextService: IWorkspaceContextService + @IPartService private partService: IPartService ) { - super(id, name, null, !!contextService.getWorkspace()); + super(id, name, null); } public run(): Promise {