88
}
89
} else if (item.kind === 'codeblockUri') {
91
>
const isEditText = item.isEdit ? ` isEdit` : '';
92
>
const subAgentText = item.subAgentInvocationId ? ` subAgentInvocationId="${encodeURIComponent(item.subAgentInvocationId)}"` : '';
93
>
const markdownText = `<vscode_codeblock_uri${isEditText}${subAgentText}>${item.uri.toString()}</vscode_codeblock_uri>`;
94
>
const merged = appendMarkdownString(previousItem.content, new MarkdownString(markdownText));
95
>
// delete the previous and append to ensure that we don't reorder the edit before the undo stop containing it
96
>
result.splice(previousItemIndex, 1);
97
>
result.push({ ...previousItem, content: merged });
98
>
}
99
} else {
100
result.push(item);