Skip to content

Commit

Permalink
Comments cannot be updated
Browse files Browse the repository at this point in the history
Fixes #142012
  • Loading branch information
alexr00 committed Feb 2, 2022
1 parent 94690ec commit bb7d26a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/workbench/contrib/comments/browser/commentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ export class CommentNode extends Disposable {

private updateCommentBody(body: string | IMarkdownString) {
this._body.innerText = '';
this._md = undefined;
if (this._md) {
this._md.remove();
this._md = undefined;
}
if (typeof body === 'string') {
this._body.innerText = body;
} else {
Expand Down

0 comments on commit bb7d26a

Please sign in to comment.