From 452e028048643cc4c14eb0253f876129fda6515a Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 4 Nov 2022 17:58:38 +0100 Subject: [PATCH] Comment view filtering: incorrect count (Showing x of y) (#165517) Fixes #165444 --- src/vs/workbench/contrib/comments/browser/commentsView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/comments/browser/commentsView.ts b/src/vs/workbench/contrib/comments/browser/commentsView.ts index 4f31b2605e462..858a940e5ce15 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsView.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsView.ts @@ -98,7 +98,7 @@ export class CommentsPanel extends FilterViewPane implements ICommentsView { this.filter = new Filter(new FilterOptions(this.filterWidget.getFilterText(), this.filters.showResolved, this.filters.showUnresolved)); this._register(this.commentService.onDidSetAllCommentThreads(e => { - this.totalComments = e.commentThreads.length; + this.totalComments += e.commentThreads.length; })); this._register(this.commentService.onDidUpdateCommentThreads(e => {