From 55e06cd29a7f1daa63582210dbc1746a74a6284f Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Wed, 27 Apr 2022 16:37:25 +0200 Subject: [PATCH] Update current comment thread on widget dispose Fixes #148216 --- .../contrib/comments/browser/commentThreadWidget.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts b/src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts index 92b0677380084..5759d2f3783c5 100644 --- a/src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts +++ b/src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts @@ -196,7 +196,10 @@ export class CommentThreadWidget extends this._onDidResize.fire(dimension); } - + override dispose() { + super.dispose(); + this.updateCurrentThread(false, false); + } private _bindCommentThreadListeners() { this._commentThreadDisposables.push(this._commentThread.onDidChangeCanReply(() => {