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,7 +1540,9 @@ export class SettingsEditor2 extends EditorPane {
|
|||||||
|
|
||||||
private refreshSingleElement(element: SettingsTreeSettingElement): void {
|
private refreshSingleElement(element: SettingsTreeSettingElement): void {
|
||||||
if (this.isVisible()) {
|
if (this.isVisible()) {
|
||||||
this.settingsTree.rerender(element);
|
if (!element.setting.deprecationMessage || element.isConfigured) {
|
||||||
|
this.settingsTree.rerender(element);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -596,10 +596,15 @@ export class SettingsTreeModel implements IDisposable {
|
|||||||
if (tocEntry.settings) {
|
if (tocEntry.settings) {
|
||||||
const settingChildren = tocEntry.settings.map(s => this.createSettingsTreeSettingElement(s, element));
|
const settingChildren = tocEntry.settings.map(s => this.createSettingsTreeSettingElement(s, element));
|
||||||
for (const child of settingChildren) {
|
for (const child of settingChildren) {
|
||||||
if (!child.setting.deprecationMessage || child.isConfigured) {
|
if (!child.setting.deprecationMessage) {
|
||||||
children.push(child);
|
children.push(child);
|
||||||
} else {
|
} else {
|
||||||
child.dispose();
|
child.inspectSelf();
|
||||||
|
if (child.isConfigured) {
|
||||||
|
children.push(child);
|
||||||
|
} else {
|
||||||
|
child.dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user