mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 09:35:37 -05:00
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { localize } from 'vs/nls';
|
|
import { IWorkbenchLayoutService } from 'vs/workbench/services/layout/browser/layoutService';
|
|
import { ToggleViewAction } from 'vs/workbench/browser/actions/layoutActions';
|
|
import { IViewsService, IViewDescriptorService } from 'vs/workbench/common/views';
|
|
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
|
import { TASKS_VIEW_ID } from 'sql/workbench/contrib/tasks/common/tasks';
|
|
|
|
export class ToggleTasksAction extends ToggleViewAction {
|
|
|
|
public static readonly ID = 'workbench.action.tasks.toggleTasks';
|
|
public static readonly LABEL = localize('toggleTasks', "Toggle Tasks");
|
|
|
|
constructor(
|
|
id: string, label: string,
|
|
@IViewsService viewsService: IViewsService,
|
|
@IViewDescriptorService viewDescriptorService: IViewDescriptorService,
|
|
@IContextKeyService contextKeyService: IContextKeyService,
|
|
@IWorkbenchLayoutService layoutService: IWorkbenchLayoutService
|
|
) {
|
|
super(id, label, TASKS_VIEW_ID, viewsService, viewDescriptorService, contextKeyService, layoutService);
|
|
}
|
|
}
|