Skip to content

Commit

Permalink
Fix comments can't be updated
Browse files Browse the repository at this point in the history
Part of #142012
  • Loading branch information
alexr00 committed Feb 2, 2022
1 parent 4ccfe11 commit 94690ec
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 94690ec

Please sign in to comment.