diff --git a/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.ts b/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.ts index 5eaf2de7198c9..a52b00c19a95b 100644 --- a/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.ts +++ b/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.ts @@ -335,10 +335,19 @@ abstract class BaseChatConfirmationWidget extends Disposable { this._domNode = elements.root; this._buttonsDomNode = elements.buttons; + const titleMd = new MarkdownString('', { supportThemeIcons: true }); + if (icon) { + titleMd.appendMarkdown(`$(${icon.id}) `); + } + if (typeof title === 'string') { + titleMd.appendText(title); + } else { + titleMd.appendMarkdown(title.value); + } this._register(instantiationService.createInstance( ChatQueryTitlePart, elements.title, - new MarkdownString(icon ? `$(${icon.id}) ${typeof title === 'string' ? title : title.value}` : typeof title === 'string' ? title : title.value), + titleMd, subtitle, ));