提交 79909fd2 编写于 作者: P Pascal Fong Kye

show 0 of n instead of hiding badge

上级 91485869
......@@ -223,7 +223,7 @@ export class ReplFilterActionViewItem extends BaseActionViewItem {
private updateBadge(): void {
if (this.filterBadge) {
const { total, filtered } = this.filters.filterStats;
const filterBadgeHidden = total === filtered || filtered === 0;
const filterBadgeHidden = total === filtered || total === 0;
this.filterBadge.classList.toggle('hidden', filterBadgeHidden);
this.filterBadge.textContent = localize('showing filtered repl lines', "Showing {0} of {1}", filtered, total);
......
......@@ -392,7 +392,7 @@ export class MarkersFilterActionViewItem extends BaseActionViewItem {
private updateBadge(): void {
if (this.filterBadge) {
const { total, filtered } = this.filterController.getFilterStats();
this.filterBadge.classList.toggle('hidden', total === filtered || filtered === 0);
this.filterBadge.classList.toggle('hidden', total === filtered || total === 0);
this.filterBadge.textContent = localize('showing filtered problems', "Showing {0} of {1}", filtered, total);
this.adjustInputBox();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册