From 6ea419c8ec024f297b3dcb93c8063bb62acdfdab Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Fri, 10 Apr 2026 13:19:36 +0200 Subject: [PATCH] feedback (#308993) feedback - listen to setting change --- .../contrib/extensions/browser/extensionsActions.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts index 915887e3a41..75896f1c81c 100644 --- a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts +++ b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts @@ -1807,6 +1807,11 @@ class EnableAIFeaturesGloballyAction extends ExtensionAction { super(EnableAIFeaturesGloballyAction.ID, EnableAIFeaturesGloballyAction.LABEL, ExtensionAction.LABEL_ACTION_CLASS); this.tooltip = localize('enableAIGloballyActionToolTip', "Enable AI features"); this.update(); + this._register(this.configurationService.onDidChangeConfiguration(e => { + if (e.affectsConfiguration(CHAT_AI_DISABLED_SETTING)) { + this.update(); + } + })); } update(): void { @@ -1863,6 +1868,11 @@ class DisableAIFeaturesGloballyAction extends ExtensionAction { super(DisableAIFeaturesGloballyAction.ID, DisableAIFeaturesGloballyAction.LABEL, ExtensionAction.LABEL_ACTION_CLASS); this.tooltip = localize('disableAIGloballyActionToolTip', "Disable AI features"); this.update(); + this._register(this.configurationService.onDidChangeConfiguration(e => { + if (e.affectsConfiguration(CHAT_AI_DISABLED_SETTING)) { + this.update(); + } + })); } update(): void {