lostintangent / codeswing

VS Code extension for building web applications ("swings") using a interactive and editor-integrated coding environment
https://aka.ms/codeswing
MIT License
977 stars 46 forks source link

VS Code Comment body display change #65

Open alexr00 opened 2 years ago

alexr00 commented 2 years ago

Hello 👋

I work on the commenting API in VS Code, and I'm opening this issue because this repository contains usages of the commenting API.

We recently noticed that even though a Comment's body can be string | MarkdownString we're always displaying it as a MarkdownString (issue). The upcoming 1.64 release will fix that: when a comment body is a string it will be displayed as a plain string and not as markdown. As a user of the the commenting API, this project may be affected by this.

If this project does wish to keep displaying comment body as Markdown, simply create a new MarkdownString and use that as the comment body:

comment.body = new vscode.MarkdownString(body);

It's also possible that this project doesn't rely on the incorrect display behavior and that this issue can be disregarded!