Skip to content

Commit a048f48

Browse files
Copilotrzhao271
andcommitted
chore: migrate mocha from 9 to 11 and @types/mocha from 8 to 10
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent c803adb commit a048f48

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,12 @@ declare module 'vscode' {
839839
*/
840840
readonly completionTokens: number;
841841

842+
/**
843+
* The number of tokens reserved for the response.
844+
* This is rendered specially in the UI to indicate that these tokens aren't used but are reserved.
845+
*/
846+
readonly outputBuffer?: number;
847+
842848
/**
843849
* Optional breakdown of prompt token usage by category and label.
844850
* If the percentages do not sum to 100%, the remaining will be shown as "Uncategorized".

src/@types/vscode.proposed.chatParticipantPrivate.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ declare module 'vscode' {
400400
* will immediately follow up with a new request in the same conversation.
401401
*/
402402
readonly yieldRequested: boolean;
403+
404+
/**
405+
* The resource URI identifying the chat session this context belongs to.
406+
* Available when the context is provided for title generation, summarization,
407+
* or other session-scoped operations. Extracted from the session's history entries.
408+
*/
409+
readonly sessionResource?: Uri;
403410
}
404411

405412
// #endregion

src/@types/vscode.proposed.chatSessionsProvider.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ declare module 'vscode' {
9393
export type ChatSessionItemControllerRefreshHandler = (token: CancellationToken) => Thenable<void>;
9494

9595
export interface ChatSessionItemControllerNewItemHandlerContext {
96-
readonly request: ChatRequest;
96+
// TODO: Use a better type but for now decrease this down to just the prompt and command since that's all we currently need.
97+
// The problem with ChatRequest is that it has a resourceUri which is not good for this code path.
98+
readonly request: {
99+
readonly prompt: string;
100+
readonly command?: string;
101+
};
97102
}
98103

99104
/**

0 commit comments

Comments
 (0)