Skip to content

Commit

Permalink
Comment filtering only seems to work partially (microsoft#159185)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 authored Aug 25, 2022
1 parent 919c971 commit 87d957e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 87d957e

Please sign in to comment.