@codingame/monaco-vscode-rollup-vsix-plugin 5.2.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/rollup-vsix-plugin.js +156 -156
- package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +28 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +90 -97
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +76 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +24 -7
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +82 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +2 -2
- package/vscode-dts/vscode.proposed.embeddings.d.ts +33 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +2 -110
- package/vscode-dts/vscode.proposed.languageModelSystem.d.ts +17 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +2 -1
- package/vscode-dts/vscode.proposed.speech.d.ts +26 -6
- package/vscode-dts/vscode.proposed.testObserver.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +0 -458
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +0 -66
- package/vscode-dts/vscode.proposed.languageModels.d.ts +0 -291
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +0 -28
|
@@ -141,7 +141,8 @@ declare module 'vscode' {
|
|
|
141
141
|
export enum CandidatePortSource {
|
|
142
142
|
None = 0,
|
|
143
143
|
Process = 1,
|
|
144
|
-
Output = 2
|
|
144
|
+
Output = 2,
|
|
145
|
+
Hybrid = 3
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
export type ResolverResult = (ResolvedAuthority | ManagedResolvedAuthority) & ResolvedOptions & TunnelInformation;
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
7
|
|
|
8
|
-
// todo@bpasero work in progress speech API
|
|
9
|
-
|
|
10
8
|
export interface SpeechToTextOptions {
|
|
11
9
|
readonly language?: string;
|
|
12
10
|
}
|
|
@@ -24,10 +22,31 @@ declare module 'vscode' {
|
|
|
24
22
|
readonly text?: string;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
export interface SpeechToTextSession
|
|
25
|
+
export interface SpeechToTextSession {
|
|
28
26
|
readonly onDidChange: Event<SpeechToTextEvent>;
|
|
29
27
|
}
|
|
30
28
|
|
|
29
|
+
export interface TextToSpeechOptions {
|
|
30
|
+
readonly language?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum TextToSpeechStatus {
|
|
34
|
+
Started = 1,
|
|
35
|
+
Stopped = 2,
|
|
36
|
+
Error = 3
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface TextToSpeechEvent {
|
|
40
|
+
readonly status: TextToSpeechStatus;
|
|
41
|
+
readonly text?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface TextToSpeechSession {
|
|
45
|
+
readonly onDidChange: Event<TextToSpeechEvent>;
|
|
46
|
+
|
|
47
|
+
synthesize(text: string): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
31
50
|
export enum KeywordRecognitionStatus {
|
|
32
51
|
Recognized = 1,
|
|
33
52
|
Stopped = 2
|
|
@@ -38,13 +57,14 @@ declare module 'vscode' {
|
|
|
38
57
|
readonly text?: string;
|
|
39
58
|
}
|
|
40
59
|
|
|
41
|
-
export interface KeywordRecognitionSession
|
|
60
|
+
export interface KeywordRecognitionSession {
|
|
42
61
|
readonly onDidChange: Event<KeywordRecognitionEvent>;
|
|
43
62
|
}
|
|
44
63
|
|
|
45
64
|
export interface SpeechProvider {
|
|
46
|
-
provideSpeechToTextSession(token: CancellationToken, options?: SpeechToTextOptions): SpeechToTextSession
|
|
47
|
-
|
|
65
|
+
provideSpeechToTextSession(token: CancellationToken, options?: SpeechToTextOptions): ProviderResult<SpeechToTextSession>;
|
|
66
|
+
provideTextToSpeechSession(token: CancellationToken, options?: TextToSpeechOptions): ProviderResult<TextToSpeechSession>;
|
|
67
|
+
provideKeywordRecognitionSession(token: CancellationToken): ProviderResult<KeywordRecognitionSession>;
|
|
48
68
|
}
|
|
49
69
|
|
|
50
70
|
export namespace speech {
|
|
@@ -15,6 +15,11 @@ declare module 'vscode' {
|
|
|
15
15
|
*/
|
|
16
16
|
export function runTests(run: TestRunRequest, token?: CancellationToken): Thenable<void>;
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Registers a provider that can provide follow-up actions for a test failure.
|
|
20
|
+
*/
|
|
21
|
+
export function registerTestFollowupProvider(provider: TestFollowupProvider): Disposable;
|
|
22
|
+
|
|
18
23
|
/**
|
|
19
24
|
* Returns an observer that watches and can request tests.
|
|
20
25
|
*/
|
|
@@ -31,6 +36,10 @@ declare module 'vscode' {
|
|
|
31
36
|
export const onDidChangeTestResults: Event<void>;
|
|
32
37
|
}
|
|
33
38
|
|
|
39
|
+
export interface TestFollowupProvider {
|
|
40
|
+
provideFollowup(result: TestRunResult, test: TestResultSnapshot, taskIndex: number, messageIndex: number, token: CancellationToken): ProviderResult<Command[]>;
|
|
41
|
+
}
|
|
42
|
+
|
|
34
43
|
export interface TestObserver {
|
|
35
44
|
/**
|
|
36
45
|
* List of tests returned by test provider for files in the workspace.
|
|
@@ -1,458 +0,0 @@
|
|
|
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
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Represents a user request in chat history.
|
|
10
|
-
*/
|
|
11
|
-
export class ChatRequestTurn {
|
|
12
|
-
/**
|
|
13
|
-
* The prompt as entered by the user.
|
|
14
|
-
*
|
|
15
|
-
* Information about variables used in this request is stored in {@link ChatRequestTurn.variables}.
|
|
16
|
-
*
|
|
17
|
-
* *Note* that the {@link ChatParticipant.name name} of the participant and the {@link ChatCommand.name command}
|
|
18
|
-
* are not part of the prompt.
|
|
19
|
-
*/
|
|
20
|
-
readonly prompt: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The id of the chat participant to which this request was directed.
|
|
24
|
-
*/
|
|
25
|
-
readonly participant: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The name of the {@link ChatCommand command} that was selected for this request.
|
|
29
|
-
*/
|
|
30
|
-
readonly command?: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The variables that were referenced in this message.
|
|
34
|
-
* TODO@API ensure that this will be compatible with future changes to chat variables.
|
|
35
|
-
*/
|
|
36
|
-
readonly variables: ChatResolvedVariable[];
|
|
37
|
-
|
|
38
|
-
private constructor(prompt: string, command: string | undefined, variables: ChatResolvedVariable[], participant: string);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Represents a chat participant's response in chat history.
|
|
43
|
-
*/
|
|
44
|
-
export class ChatResponseTurn {
|
|
45
|
-
/**
|
|
46
|
-
* The content that was received from the chat participant. Only the stream parts that represent actual content (not metadata) are represented.
|
|
47
|
-
*/
|
|
48
|
-
readonly response: ReadonlyArray<ChatResponseMarkdownPart | ChatResponseFileTreePart | ChatResponseAnchorPart | ChatResponseCommandButtonPart>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The result that was received from the chat participant.
|
|
52
|
-
*/
|
|
53
|
-
readonly result: ChatResult;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The id of the chat participant that this response came from.
|
|
57
|
-
*/
|
|
58
|
-
readonly participant: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* The name of the command that this response came from.
|
|
62
|
-
*/
|
|
63
|
-
readonly command?: string;
|
|
64
|
-
|
|
65
|
-
private constructor(response: ReadonlyArray<ChatResponseMarkdownPart | ChatResponseFileTreePart | ChatResponseAnchorPart | ChatResponseCommandButtonPart>, result: ChatResult, participant: string);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ChatContext {
|
|
69
|
-
/**
|
|
70
|
-
* All of the chat messages so far in the current chat session.
|
|
71
|
-
*/
|
|
72
|
-
readonly history: ReadonlyArray<ChatRequestTurn | ChatResponseTurn>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Represents an error result from a chat request.
|
|
77
|
-
*/
|
|
78
|
-
export interface ChatErrorDetails {
|
|
79
|
-
/**
|
|
80
|
-
* An error message that is shown to the user.
|
|
81
|
-
*/
|
|
82
|
-
message: string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* If partial markdown content was sent over the {@link ChatRequestHandler handler}'s response stream before the response terminated, then this flag
|
|
86
|
-
* can be set to true and it will be rendered with incomplete markdown features patched up.
|
|
87
|
-
*
|
|
88
|
-
* For example, if the response terminated after sending part of a triple-backtick code block, then the editor will
|
|
89
|
-
* render it as a complete code block.
|
|
90
|
-
*/
|
|
91
|
-
responseIsIncomplete?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* If set to true, the response will be partly blurred out.
|
|
95
|
-
*/
|
|
96
|
-
responseIsFiltered?: boolean;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The result of a chat request.
|
|
101
|
-
*/
|
|
102
|
-
export interface ChatResult {
|
|
103
|
-
/**
|
|
104
|
-
* If the request resulted in an error, this property defines the error details.
|
|
105
|
-
*/
|
|
106
|
-
errorDetails?: ChatErrorDetails;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Arbitrary metadata for this result. Can be anything, but must be JSON-stringifyable.
|
|
110
|
-
*/
|
|
111
|
-
readonly metadata?: { readonly [key: string]: any };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Represents the type of user feedback received.
|
|
116
|
-
*/
|
|
117
|
-
export enum ChatResultFeedbackKind {
|
|
118
|
-
/**
|
|
119
|
-
* The user marked the result as helpful.
|
|
120
|
-
*/
|
|
121
|
-
Unhelpful = 0,
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The user marked the result as unhelpful.
|
|
125
|
-
*/
|
|
126
|
-
Helpful = 1,
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Represents user feedback for a result.
|
|
131
|
-
*/
|
|
132
|
-
export interface ChatResultFeedback {
|
|
133
|
-
/**
|
|
134
|
-
* The ChatResult for which the user is providing feedback.
|
|
135
|
-
* This object has the same properties as the result returned from the participant callback, including `metadata`, but is not the same instance.
|
|
136
|
-
*/
|
|
137
|
-
readonly result: ChatResult;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The kind of feedback that was received.
|
|
141
|
-
*/
|
|
142
|
-
readonly kind: ChatResultFeedbackKind;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* A followup question suggested by the participant.
|
|
147
|
-
*/
|
|
148
|
-
export interface ChatFollowup {
|
|
149
|
-
/**
|
|
150
|
-
* The message to send to the chat.
|
|
151
|
-
*/
|
|
152
|
-
prompt: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* A title to show the user. The prompt will be shown by default, when this is unspecified.
|
|
156
|
-
*/
|
|
157
|
-
label?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* By default, the followup goes to the same participant/command. But this property can be set to invoke a different participant by ID.
|
|
161
|
-
* Followups can only invoke a participant that was contributed by the same extension.
|
|
162
|
-
*/
|
|
163
|
-
participant?: string;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* By default, the followup goes to the same participant/command. But this property can be set to invoke a different command.
|
|
167
|
-
*/
|
|
168
|
-
command?: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Will be invoked once after each request to get suggested followup questions to show the user. The user can click the followup to send it to the chat.
|
|
173
|
-
*/
|
|
174
|
-
export interface ChatFollowupProvider {
|
|
175
|
-
/**
|
|
176
|
-
* Provide followups for the given result.
|
|
177
|
-
* @param result This object has the same properties as the result returned from the participant callback, including `metadata`, but is not the same instance.
|
|
178
|
-
* @param token A cancellation token.
|
|
179
|
-
*/
|
|
180
|
-
provideFollowups(result: ChatResult, context: ChatContext, token: CancellationToken): ProviderResult<ChatFollowup[]>;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* A chat request handler is a callback that will be invoked when a request is made to a chat participant.
|
|
185
|
-
*/
|
|
186
|
-
export type ChatRequestHandler = (request: ChatRequest, context: ChatContext, response: ChatResponseStream, token: CancellationToken) => ProviderResult<ChatResult | void>;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* A chat participant can be invoked by the user in a chat session, using the `@` prefix. When it is invoked, it handles the chat request and is solely
|
|
190
|
-
* responsible for providing a response to the user. A ChatParticipant is created using {@link chat.createChatParticipant}.
|
|
191
|
-
*/
|
|
192
|
-
export interface ChatParticipant {
|
|
193
|
-
/**
|
|
194
|
-
* A unique ID for this participant.
|
|
195
|
-
*/
|
|
196
|
-
readonly id: string;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* An icon for the participant shown in UI.
|
|
200
|
-
*/
|
|
201
|
-
iconPath?: Uri | {
|
|
202
|
-
/**
|
|
203
|
-
* The icon path for the light theme.
|
|
204
|
-
*/
|
|
205
|
-
light: Uri;
|
|
206
|
-
/**
|
|
207
|
-
* The icon path for the dark theme.
|
|
208
|
-
*/
|
|
209
|
-
dark: Uri;
|
|
210
|
-
} | ThemeIcon;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* When the user clicks this participant in `/help`, this text will be submitted to this participant.
|
|
214
|
-
*/
|
|
215
|
-
sampleRequest?: string;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* The handler for requests to this participant.
|
|
219
|
-
*/
|
|
220
|
-
requestHandler: ChatRequestHandler;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* This provider will be called once after each request to retrieve suggested followup questions.
|
|
224
|
-
*/
|
|
225
|
-
followupProvider?: ChatFollowupProvider;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* An event that fires whenever feedback for a result is received, e.g. when a user up- or down-votes
|
|
229
|
-
* a result.
|
|
230
|
-
*
|
|
231
|
-
* The passed {@link ChatResultFeedback.result result} is guaranteed to be the same instance that was
|
|
232
|
-
* previously returned from this chat participant.
|
|
233
|
-
*/
|
|
234
|
-
onDidReceiveFeedback: Event<ChatResultFeedback>;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Dispose this participant and free resources
|
|
238
|
-
*/
|
|
239
|
-
dispose(): void;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* A resolved variable value is a name-value pair as well as the range in the prompt where a variable was used.
|
|
244
|
-
*/
|
|
245
|
-
export interface ChatResolvedVariable {
|
|
246
|
-
/**
|
|
247
|
-
* The name of the variable.
|
|
248
|
-
*
|
|
249
|
-
* *Note* that the name doesn't include the leading `#`-character,
|
|
250
|
-
* e.g `selection` for `#selection`.
|
|
251
|
-
*/
|
|
252
|
-
readonly name: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The start and end index of the variable in the {@link ChatRequest.prompt prompt}.
|
|
256
|
-
*
|
|
257
|
-
* *Note* that the indices take the leading `#`-character into account which means they can
|
|
258
|
-
* used to modify the prompt as-is.
|
|
259
|
-
*/
|
|
260
|
-
readonly range?: [start: number, end: number];
|
|
261
|
-
|
|
262
|
-
// TODO@API decouple of resolve API, use `value: string | Uri | (maybe) unknown?`
|
|
263
|
-
/**
|
|
264
|
-
* The values of the variable. Can be an empty array if the variable doesn't currently have a value.
|
|
265
|
-
*/
|
|
266
|
-
readonly values: ChatVariableValue[];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export interface ChatRequest {
|
|
270
|
-
/**
|
|
271
|
-
* The prompt as entered by the user.
|
|
272
|
-
*
|
|
273
|
-
* Information about variables used in this request is stored in {@link ChatRequest.variables}.
|
|
274
|
-
*
|
|
275
|
-
* *Note* that the {@link ChatParticipant.name name} of the participant and the {@link ChatCommand.name command}
|
|
276
|
-
* are not part of the prompt.
|
|
277
|
-
*/
|
|
278
|
-
readonly prompt: string;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* The name of the {@link ChatCommand command} that was selected for this request.
|
|
282
|
-
*/
|
|
283
|
-
readonly command: string | undefined;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* The list of variables and their values that are referenced in the prompt.
|
|
288
|
-
*
|
|
289
|
-
* *Note* that the prompt contains varibale references as authored and that it is up to the participant
|
|
290
|
-
* to further modify the prompt, for instance by inlining variable values or creating links to
|
|
291
|
-
* headings which contain the resolved values. Variables are sorted in reverse by their range
|
|
292
|
-
* in the prompt. That means the last variable in the prompt is the first in this list. This simplifies
|
|
293
|
-
* string-manipulation of the prompt.
|
|
294
|
-
*/
|
|
295
|
-
readonly variables: readonly ChatResolvedVariable[];
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* The ChatResponseStream is how a participant is able to return content to the chat view. It provides several methods for streaming different types of content
|
|
300
|
-
* which will be rendered in an appropriate way in the chat view. A participant can use the helper method for the type of content it wants to return, or it
|
|
301
|
-
* can instantiate a {@link ChatResponsePart} and use the generic {@link ChatResponseStream.push} method to return it.
|
|
302
|
-
*/
|
|
303
|
-
export interface ChatResponseStream {
|
|
304
|
-
/**
|
|
305
|
-
* Push a markdown part to this stream. Short-hand for
|
|
306
|
-
* `push(new ChatResponseMarkdownPart(value))`.
|
|
307
|
-
*
|
|
308
|
-
* @see {@link ChatResponseStream.push}
|
|
309
|
-
* @param value A markdown string or a string that should be interpreted as markdown. The boolean form of {@link MarkdownString.isTrusted} is NOT supported.
|
|
310
|
-
* @returns This stream.
|
|
311
|
-
*/
|
|
312
|
-
markdown(value: string | MarkdownString): ChatResponseStream;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Push an anchor part to this stream. Short-hand for
|
|
316
|
-
* `push(new ChatResponseAnchorPart(value, title))`.
|
|
317
|
-
* An anchor is an inline reference to some type of resource.
|
|
318
|
-
*
|
|
319
|
-
* @param value A uri or location
|
|
320
|
-
* @param title An optional title that is rendered with value
|
|
321
|
-
* @returns This stream.
|
|
322
|
-
*/
|
|
323
|
-
anchor(value: Uri | Location, title?: string): ChatResponseStream;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Push a command button part to this stream. Short-hand for
|
|
327
|
-
* `push(new ChatResponseCommandButtonPart(value, title))`.
|
|
328
|
-
*
|
|
329
|
-
* @param command A Command that will be executed when the button is clicked.
|
|
330
|
-
* @returns This stream.
|
|
331
|
-
*/
|
|
332
|
-
button(command: Command): ChatResponseStream;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Push a filetree part to this stream. Short-hand for
|
|
336
|
-
* `push(new ChatResponseFileTreePart(value))`.
|
|
337
|
-
*
|
|
338
|
-
* @param value File tree data.
|
|
339
|
-
* @param baseUri The base uri to which this file tree is relative to.
|
|
340
|
-
* @returns This stream.
|
|
341
|
-
*/
|
|
342
|
-
filetree(value: ChatResponseFileTree[], baseUri: Uri): ChatResponseStream;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Push a progress part to this stream. Short-hand for
|
|
346
|
-
* `push(new ChatResponseProgressPart(value))`.
|
|
347
|
-
*
|
|
348
|
-
* @param value A progress message
|
|
349
|
-
* @returns This stream.
|
|
350
|
-
*/
|
|
351
|
-
progress(value: string): ChatResponseStream;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Push a reference to this stream. Short-hand for
|
|
355
|
-
* `push(new ChatResponseReferencePart(value))`.
|
|
356
|
-
*
|
|
357
|
-
* *Note* that the reference is not rendered inline with the response.
|
|
358
|
-
*
|
|
359
|
-
* @param value A uri or location
|
|
360
|
-
* @param iconPath Icon for the reference shown in UI
|
|
361
|
-
* @returns This stream.
|
|
362
|
-
*/
|
|
363
|
-
reference(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: ThemeIcon): ChatResponseStream;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Pushes a part to this stream.
|
|
367
|
-
*
|
|
368
|
-
* @param part A response part, rendered or metadata
|
|
369
|
-
*/
|
|
370
|
-
push(part: ChatResponsePart): ChatResponseStream;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export class ChatResponseMarkdownPart {
|
|
374
|
-
value: MarkdownString;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* @param value Note: The boolean form of {@link MarkdownString.isTrusted} is NOT supported.
|
|
378
|
-
*/
|
|
379
|
-
constructor(value: string | MarkdownString);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export interface ChatResponseFileTree {
|
|
383
|
-
name: string;
|
|
384
|
-
children?: ChatResponseFileTree[];
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export class ChatResponseFileTreePart {
|
|
388
|
-
value: ChatResponseFileTree[];
|
|
389
|
-
baseUri: Uri;
|
|
390
|
-
constructor(value: ChatResponseFileTree[], baseUri: Uri);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export class ChatResponseAnchorPart {
|
|
394
|
-
value: Uri | Location | SymbolInformation;
|
|
395
|
-
title?: string;
|
|
396
|
-
constructor(value: Uri | Location | SymbolInformation, title?: string);
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export class ChatResponseProgressPart {
|
|
400
|
-
value: string;
|
|
401
|
-
constructor(value: string);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export class ChatResponseReferencePart {
|
|
405
|
-
value: Uri | Location | { variableName: string; value?: Uri | Location };
|
|
406
|
-
iconPath?: ThemeIcon;
|
|
407
|
-
constructor(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: ThemeIcon);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export class ChatResponseCommandButtonPart {
|
|
411
|
-
value: Command;
|
|
412
|
-
constructor(value: Command);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Represents the different chat response types.
|
|
417
|
-
*/
|
|
418
|
-
export type ChatResponsePart = ChatResponseMarkdownPart | ChatResponseFileTreePart | ChatResponseAnchorPart
|
|
419
|
-
| ChatResponseProgressPart | ChatResponseReferencePart | ChatResponseCommandButtonPart;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
export namespace chat {
|
|
423
|
-
/**
|
|
424
|
-
* Create a new {@link ChatParticipant chat participant} instance.
|
|
425
|
-
*
|
|
426
|
-
* @param id A unique identifier for the participant.
|
|
427
|
-
* @param handler A request handler for the participant.
|
|
428
|
-
* @returns A new chat participant
|
|
429
|
-
*/
|
|
430
|
-
export function createChatParticipant(id: string, handler: ChatRequestHandler): ChatParticipant;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* The detail level of this chat variable value.
|
|
435
|
-
*/
|
|
436
|
-
export enum ChatVariableLevel {
|
|
437
|
-
Short = 1,
|
|
438
|
-
Medium = 2,
|
|
439
|
-
Full = 3
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export interface ChatVariableValue {
|
|
443
|
-
/**
|
|
444
|
-
* The detail level of this chat variable value. If possible, variable resolvers should try to offer shorter values that will consume fewer tokens in an LLM prompt.
|
|
445
|
-
*/
|
|
446
|
-
level: ChatVariableLevel;
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* The variable's value, which can be included in an LLM prompt as-is, or the chat participant may decide to read the value and do something else with it.
|
|
450
|
-
*/
|
|
451
|
-
value: string | Uri;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* A description of this value, which could be provided to the LLM as a hint.
|
|
455
|
-
*/
|
|
456
|
-
description?: string;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// See https://github.com/microsoft/vscode/issues/63943
|
|
9
|
-
|
|
10
|
-
export class DebugThread {
|
|
11
|
-
/**
|
|
12
|
-
* Create a ThreadFocus
|
|
13
|
-
* @param session
|
|
14
|
-
* @param threadId
|
|
15
|
-
*/
|
|
16
|
-
constructor(session: DebugSession, threadId: number);
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Debug session for thread.
|
|
20
|
-
*/
|
|
21
|
-
readonly session: DebugSession;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* ID of the associated thread in the debug protocol.
|
|
25
|
-
*/
|
|
26
|
-
readonly threadId: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export class DebugStackFrame {
|
|
30
|
-
/**
|
|
31
|
-
* Create a StackFrameFocus
|
|
32
|
-
* @param session
|
|
33
|
-
* @param threadId
|
|
34
|
-
* @param frameId
|
|
35
|
-
*/
|
|
36
|
-
constructor(session: DebugSession, threadId?: number, frameId?: number);
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Debug session for thread.
|
|
40
|
-
*/
|
|
41
|
-
readonly session: DebugSession;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Id of the associated thread in the debug protocol.
|
|
45
|
-
*/
|
|
46
|
-
readonly threadId: number;
|
|
47
|
-
/**
|
|
48
|
-
* Id of the stack frame in the debug protocol.
|
|
49
|
-
*/
|
|
50
|
-
readonly frameId: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export namespace debug {
|
|
55
|
-
/**
|
|
56
|
-
* The currently focused thread or stack frame, or `undefined` if no
|
|
57
|
-
* thread or stack is focused.
|
|
58
|
-
*/
|
|
59
|
-
export const activeStackItem: DebugThread | DebugStackFrame | undefined;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* An event which fires when the {@link debug.activeStackItem} has changed.
|
|
63
|
-
*/
|
|
64
|
-
export const onDidChangeActiveStackItem: Event<DebugThread | DebugStackFrame | undefined>;
|
|
65
|
-
}
|
|
66
|
-
}
|