Microsoft/vscode

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

开放

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

 (3 条评论) (0 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
bugchathelp wanted

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (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

贡献者指南