mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
Support serialized tool call results that return resources (e.g. rg, glob, etc) (#292768)
* Support serialized tool call results that return resources (e.g. rg, glob, etc) * Fixes * add tests * Fixes
This commit is contained in:
@@ -280,6 +280,13 @@ declare module 'vscode' {
|
||||
}>;
|
||||
}
|
||||
|
||||
export interface ChatToolResourcesInvocationData {
|
||||
/**
|
||||
* Array of file URIs or locations to display as a collapsible list
|
||||
*/
|
||||
values: Array<Uri | Location>;
|
||||
}
|
||||
|
||||
export class ChatToolInvocationPart {
|
||||
toolName: string;
|
||||
toolCallId: string;
|
||||
@@ -289,7 +296,7 @@ declare module 'vscode' {
|
||||
pastTenseMessage?: string | MarkdownString;
|
||||
isConfirmed?: boolean;
|
||||
isComplete?: boolean;
|
||||
toolSpecificData?: ChatTerminalToolInvocationData | ChatMcpToolInvocationData | ChatTodoToolInvocationData;
|
||||
toolSpecificData?: ChatTerminalToolInvocationData | ChatMcpToolInvocationData | ChatTodoToolInvocationData | ChatToolResourcesInvocationData;
|
||||
subAgentInvocationId?: string;
|
||||
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user