-
Notifications
You must be signed in to change notification settings - Fork 31.8k
/
Copy pathvscode.proposed.defaultChatParticipant.d.ts
57 lines (46 loc) · 1.72 KB
/
vscode.proposed.defaultChatParticipant.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*---------------------------------------------------------------------------------------------
* 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 ChatWelcomeMessageProvider {
provideSampleQuestions?(location: ChatLocation, token: CancellationToken): ProviderResult<ChatFollowup[]>;
}
export interface ChatRequesterInformation {
name: string;
/**
* A full URI for the icon of the request.
*/
icon?: Uri;
}
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 ChatParticipant {
/**
* A string that will be added before the listing of chat participants in `/help`.
*/
helpTextPrefix?: string | MarkdownString;
/**
* A string that will be added before the listing of chat variables in `/help`.
*/
helpTextVariablesPrefix?: string | MarkdownString;
/**
* A string that will be appended after the listing of chat participants in `/help`.
*/
helpTextPostfix?: string | MarkdownString;
welcomeMessageProvider?: ChatWelcomeMessageProvider;
additionalWelcomeMessage?: string | MarkdownString;
titleProvider?: ChatTitleProvider;
requester?: ChatRequesterInformation;
}
}