Fix #122544
This commit is contained in:
parent
6f6b815650
commit
606bf316c7
1 changed files with 3 additions and 1 deletions
|
@ -1593,7 +1593,9 @@ export class SettingTreeRenderers {
|
|||
this.settingActions = [
|
||||
new Action('settings.resetSetting', localize('resetSettingLabel', "Reset Setting"), undefined, undefined, async context => {
|
||||
if (context instanceof SettingsTreeSettingElement) {
|
||||
this._onDidChangeSetting.fire({ key: context.setting.key, value: undefined, type: context.setting.type as SettingValueType });
|
||||
if (!context.isUntrusted) {
|
||||
this._onDidChangeSetting.fire({ key: context.setting.key, value: undefined, type: context.setting.type as SettingValueType });
|
||||
}
|
||||
}
|
||||
}),
|
||||
new Separator(),
|
||||
|
|
Loading…
Reference in a new issue