From 87d957ef38963c9f100dd5a586d106bebf6ea077 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Thu, 25 Aug 2022 17:16:12 +0200 Subject: [PATCH] Comment filtering only seems to work partially (#159185) Fixes #158880 --- .../workbench/contrib/comments/browser/commentsViewActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts b/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts index 751dea24dbb3e..4445e3a05b0e2 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsViewActions.ts @@ -320,7 +320,7 @@ export class CommentsFilterActionViewItem extends BaseActionViewItem { private updateBadge(): void { if (this.filterBadge) { const { total, filtered } = this.commentsView.getFilterStats(); - this.filterBadge.classList.toggle('hidden', total === filtered || total === 0); + this.filterBadge.classList.toggle('hidden', (total === filtered && !this.filterInputBox?.value) || total === 0); this.filterBadge.textContent = localize('showing filtered comments', "Showing {0} of {1}", filtered, total); this.adjustInputBox(); }