Skip to content

Commit

Permalink
Update current comment thread on widget dispose
Browse files Browse the repository at this point in the history
Fixes #148216
  • Loading branch information
alexr00 committed Apr 27, 2022
1 parent d583bdc commit 55e06cd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ export class CommentThreadWidget<T extends IRange | ICellRange = IRange> extends
this._onDidResize.fire(dimension);
}


override dispose() {
super.dispose();
this.updateCurrentThread(false, false);
}

private _bindCommentThreadListeners() {
this._commentThreadDisposables.push(this._commentThread.onDidChangeCanReply(() => {
Expand Down

0 comments on commit 55e06cd

Please sign in to comment.