Update RequestTurn2 to allow passing a request Id from chat extension (#293263)

This commit is contained in:
Don Jayamanne
2026-02-06 16:45:54 +11:00
committed by GitHub
parent c7a9f45792
commit a02259fdb9

View File

@@ -132,6 +132,10 @@ declare module 'vscode' {
* ChatRequestTurn + private additions. Note- at runtime this is the SAME as ChatRequestTurn and instanceof is safe.
*/
export class ChatRequestTurn2 {
/**
* The id of the chat request. Used to identity an interaction with any of the chat surfaces.
*/
readonly id?: string;
/**
* The prompt as entered by the user.
*
@@ -170,7 +174,7 @@ declare module 'vscode' {
/**
* @hidden
*/
constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined);
constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined, id: string | undefined);
}
export class ChatResponseTurn2 {