Microsoft/vscode

Chat participant rendered markdown HTML gets output as raw string before rendered correctly

Open

#239,765 创建于 2025年2月6日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
bugchathelp wanted

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.97.0-insider
  • OS Version: macOS

Steps to Reproduce:

Given the code:

  const message = new vscode.MarkdownString(
    `<sup><span style="color:var(--vscode-editorCodeLens-foreground);">$(info) Wallaby is using ${model.name}</span></sup>\n`,
  );
  message.supportHtml = true;
  message.supportThemeIcons = true;

  chatStream.markdown(message);

where chatStream is vscode.ChatResponseStream, the end user result is that it starts rendering raw text and then renders formatted HTML:

Image

贡献者指南