Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/chatSessions/copilotcli/common/customSessionTitleService.ts
13405 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import type { CancellationToken } from 'vscode';
7
import { createServiceIdentifier } from '../../../../util/common/services';
8
9
export const ICustomSessionTitleService = createServiceIdentifier<ICustomSessionTitleService>('ICustomSessionTitleService');
10
11
export interface ICustomSessionTitleService {
12
readonly _serviceBrand: undefined;
13
14
getCustomSessionTitle(sessionId: string): Promise<string | undefined>;
15
setCustomSessionTitle(sessionId: string, title: string): Promise<void>;
16
generateSessionTitle(sessionId: string, request: { prompt?: string; command?: string }, token: CancellationToken): Promise<string | undefined>;
17
}
18
19