Path: blob/main/src/vs/sessions/browser/chatDashboardService.ts
13389 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { DisposableStore } from '../../base/common/lifecycle.js';6import { InstantiationType, registerSingleton } from '../../platform/instantiation/common/extensions.js';7import { createDecorator } from '../../platform/instantiation/common/instantiation.js';89export const IChatDashboardService = createDecorator<IChatDashboardService>('chatDashboardService');1011export interface IChatDashboardService {12readonly _serviceBrand: undefined;1314/**15* Creates a chat status dashboard element embedded in a container div.16* Returns `undefined` if the dashboard is not available.17*/18createDashboardElement(store: DisposableStore): HTMLElement | undefined;19}2021class NullChatDashboardService implements IChatDashboardService {22readonly _serviceBrand: undefined;23createDashboardElement(): HTMLElement | undefined { return undefined; }24}2526registerSingleton(IChatDashboardService, NullChatDashboardService, InstantiationType.Delayed);272829