Skip to content

Commit 6e8c7df

Browse files
authored
Fix visibility of Setting editor variables (microsoft#167016)
1 parent f395b6a commit 6e8c7df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ class SettingBoolObjectRenderer extends AbstractSettingObjectRenderer implements
13891389
return this.renderTemplateWithWidget(common, widget);
13901390
}
13911391

1392-
override onDidChangeObject(template: ISettingObjectItemTemplate, e: ISettingListChangeEvent<IObjectDataItem>): void {
1392+
protected override onDidChangeObject(template: ISettingObjectItemTemplate, e: ISettingListChangeEvent<IObjectDataItem>): void {
13931393
if (template.context) {
13941394
super.onDidChangeObject(template, e);
13951395

src/vs/workbench/contrib/preferences/browser/settingsWidgets.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ export abstract class AbstractListSettingWidget<TDataItem extends object> extend
172172
this.renderList();
173173
}
174174

175+
abstract isItemNew(item: TDataItem): boolean;
175176
protected abstract getEmptyItem(): TDataItem;
176177
protected abstract getContainerClasses(): string[];
177178
protected abstract getActionsForItem(item: TDataItem, idx: number): IAction[];
178179
protected abstract renderItem(item: TDataItem, idx: number): RowElementGroup;
179180
protected abstract renderEdit(item: TDataItem, idx: number): HTMLElement;
180-
protected abstract isItemNew(item: TDataItem): boolean;
181181
protected abstract addTooltipsToRow(rowElement: RowElementGroup, item: TDataItem): void;
182182
protected abstract getLocalizedStrings(): {
183183
deleteActionTooltip: string;
@@ -662,7 +662,7 @@ export class ListSettingWidget extends AbstractListSettingWidget<IListDataItem>
662662
return rowElement;
663663
}
664664

665-
protected isItemNew(item: IListDataItem): boolean {
665+
override isItemNew(item: IListDataItem): boolean {
666666
return item.value.data === '';
667667
}
668668

@@ -822,7 +822,7 @@ export class ObjectSettingDropdownWidget extends AbstractListSettingWidget<IObje
822822
super.setValue(listData);
823823
}
824824

825-
isItemNew(item: IObjectDataItem): boolean {
825+
override isItemNew(item: IObjectDataItem): boolean {
826826
return item.key.data === '' && item.value.data === '';
827827
}
828828

@@ -1174,7 +1174,7 @@ export class ObjectSettingCheckboxWidget extends AbstractListSettingWidget<IObje
11741174
super.setValue(listData);
11751175
}
11761176

1177-
isItemNew(item: IObjectDataItem): boolean {
1177+
override isItemNew(item: IObjectDataItem): boolean {
11781178
return !item.key.data && !item.value.data;
11791179
}
11801180

0 commit comments

Comments
 (0)