mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
Fix configured deprecated settings not showing up (#242521)
This commit is contained in:
@@ -1540,9 +1540,11 @@ export class SettingsEditor2 extends EditorPane {
|
||||
|
||||
private refreshSingleElement(element: SettingsTreeSettingElement): void {
|
||||
if (this.isVisible()) {
|
||||
if (!element.setting.deprecationMessage || element.isConfigured) {
|
||||
this.settingsTree.rerender(element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private refreshTree(): void {
|
||||
if (this.isVisible() && this.currentSettingsModel) {
|
||||
|
||||
@@ -596,13 +596,18 @@ export class SettingsTreeModel implements IDisposable {
|
||||
if (tocEntry.settings) {
|
||||
const settingChildren = tocEntry.settings.map(s => this.createSettingsTreeSettingElement(s, element));
|
||||
for (const child of settingChildren) {
|
||||
if (!child.setting.deprecationMessage || child.isConfigured) {
|
||||
if (!child.setting.deprecationMessage) {
|
||||
children.push(child);
|
||||
} else {
|
||||
child.inspectSelf();
|
||||
if (child.isConfigured) {
|
||||
children.push(child);
|
||||
} else {
|
||||
child.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (tocEntry.children) {
|
||||
const groupChildren = tocEntry.children.map(child => this.createSettingsTreeGroupElement(child, element));
|
||||
|
||||
Reference in New Issue
Block a user