mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
// version: 4
|
|
|
|
declare module 'vscode' {
|
|
|
|
export interface ChatWelcomeMessageContent {
|
|
icon: ThemeIcon;
|
|
title: string;
|
|
message: MarkdownString;
|
|
}
|
|
|
|
export interface ChatTitleProvider {
|
|
/**
|
|
* TODO@API Should this take a ChatResult like the followup provider, or just take a new ChatContext that includes the current message as history?
|
|
*/
|
|
provideChatTitle(context: ChatContext, token: CancellationToken): ProviderResult<string>;
|
|
}
|
|
|
|
export interface ChatSummarizer {
|
|
provideChatSummary(context: ChatContext, token: CancellationToken): ProviderResult<string>;
|
|
}
|
|
|
|
export interface ChatParticipant {
|
|
/**
|
|
* A string that will be added before the listing of chat participants in `/help`.
|
|
*/
|
|
helpTextPrefix?: string | MarkdownString;
|
|
|
|
/**
|
|
* A string that will be appended after the listing of chat participants in `/help`.
|
|
*/
|
|
helpTextPostfix?: string | MarkdownString;
|
|
|
|
additionalWelcomeMessage?: string | MarkdownString;
|
|
titleProvider?: ChatTitleProvider;
|
|
summarizer?: ChatSummarizer;
|
|
}
|
|
}
|