Microsoft/vscode

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

Open

#239.765 geöffnet am 6. Feb. 2025

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
bugchathelp wanted

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide