This commit is contained in:
Sandeep Somavarapu 2021-04-28 21:09:38 +05:30
parent 6f6b815650
commit 606bf316c7
No known key found for this signature in database
GPG key ID: 1FED25EC4646638B

View file

@ -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(),