153
154
const items = args.todoList ?? currentTodoItems;
156
id: todo.id.toString(),
157
title: todo.title,
158
status: todo.status
160
>
161
>
const invocationLabel = message?.replace(/^(Starting|Completed): /i, '') ?? localize('todo.updatingList', "Updating todo list");
162
>
const invocationMessage = new MarkdownString(invocationLabel);
163
>
164
>
return {
165
>
invocationMessage,
166
>
presentation: items.length ? undefined : ToolInvocationPresentation.Hidden,
167
>
pastTenseMessage: new MarkdownString(message ?? localize('todo.updatedList', "Updated todo list")),
168
>
toolSpecificData: {
169
>
kind: 'todoList',
170
>
todoList: todoList
171
>
}
172
>
};
173
>
}
174
175
private generatePastTenseMessage(currentTodos: IChatTodo[], newTodos: IManageTodoListToolInputParams['todoList']): string {