Skip to content

Commit 1d1fe28

Browse files
committed
Fix #53455 - categories without children should not be shown
1 parent a115c73 commit 1d1fe28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/parts/preferences/browser/settingsTree.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ function _resolveSettingsTree(tocData: ITOCEntry, allSettings: Set<ISetting>): I
243243
return <ITOCEntry>{
244244
id: tocData.id,
245245
label: tocData.label,
246-
children: tocData.children.map(child => _resolveSettingsTree(child, allSettings))
246+
children: tocData.children
247+
.map(child => _resolveSettingsTree(child, allSettings))
248+
.filter(child => (child.children && child.children.length) || (child.settings && child.settings.length))
247249
};
248250
}
249251

0 commit comments

Comments
 (0)