Skip to content

Commit

Permalink
Don't show deprecated preferences in the UI (#11246)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work authored Jun 6, 2022
1 parent bbac7e3 commit 96a3950
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class PreferenceTreeGenerator {
}
for (const propertyName of propertyNames) {
const property = preferencesSchema.properties[propertyName];
if (!this.preferenceConfigs.isSectionName(propertyName) && !OVERRIDE_PROPERTY_PATTERN.test(propertyName)) {
if (!this.preferenceConfigs.isSectionName(propertyName) && !OVERRIDE_PROPERTY_PATTERN.test(propertyName) && !property.deprecationMessage) {
const labels = propertyName.split('.');
const groupID = this.getGroupName(labels);
const subgroupName = this.getSubgroupName(labels, groupID);
Expand Down

0 comments on commit 96a3950

Please sign in to comment.