Skip to content

Commit

Permalink
Fix comments can't be updated (#142013)
Browse files Browse the repository at this point in the history
Fixes of #142012
  • Loading branch information
alexr00 authored Feb 2, 2022
1 parent 4ccfe11 commit 5554b12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vs/workbench/contrib/comments/browser/commentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ export class CommentNode extends Disposable {

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

0 comments on commit 5554b12

Please sign in to comment.