Skip to content

Commit a31dcc3

Browse files
committed
Fix microsoft#72173 - settings not shown after clearing setting search query
1 parent 9daf8a6 commit a31dcc3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/vs/workbench/contrib/preferences/electron-browser/settingsEditor2.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,11 +1219,14 @@ export class SettingsEditor2 extends BaseEditor {
12191219
}
12201220

12211221
private renderResultCountMessages() {
1222-
if (!this.currentSettingsModel || !this.searchResultModel) {
1223-
this.countElement.style.display = 'none';
1222+
if (!this.currentSettingsModel) {
12241223
return;
12251224
}
12261225

1226+
if (!this.searchResultModel) {
1227+
this.countElement.style.display = 'none';
1228+
}
1229+
12271230
if (this.tocTreeModel && this.tocTreeModel.settingsTreeRoot) {
12281231
const count = this.tocTreeModel.settingsTreeRoot.count;
12291232
switch (count) {

0 commit comments

Comments
 (0)