Files
vscode/src/vs/workbench/services/activityBar/browser/activityBarService.ts
2019-08-30 15:40:46 +02:00

24 lines
986 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { IBadge } from 'vs/workbench/services/activity/common/activity';
import { IDisposable } from 'vs/base/common/lifecycle';
export const IActivityBarService = createDecorator<IActivityBarService>('activityBarService');
export interface IActivityBarService {
_serviceBrand: undefined;
/**
* Show an activity in a viewlet.
*/
showActivity(viewletOrActionId: string, badge: IBadge, clazz?: string, priority?: number): IDisposable;
/**
* Returns id of pinned viewlets following the visual order.
*/
getPinnedViewletIds(): string[];
}