Skip to content

Commit 87d957e

Browse files
authored
Comment filtering only seems to work partially (microsoft#159185)
Fixes microsoft#158880
1 parent 919c971 commit 87d957e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/comments/browser/commentsViewActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class CommentsFilterActionViewItem extends BaseActionViewItem {
320320
private updateBadge(): void {
321321
if (this.filterBadge) {
322322
const { total, filtered } = this.commentsView.getFilterStats();
323-
this.filterBadge.classList.toggle('hidden', total === filtered || total === 0);
323+
this.filterBadge.classList.toggle('hidden', (total === filtered && !this.filterInputBox?.value) || total === 0);
324324
this.filterBadge.textContent = localize('showing filtered comments', "Showing {0} of {1}", filtered, total);
325325
this.adjustInputBox();
326326
}

0 commit comments

Comments
 (0)