mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 13:50:46 +01:00
committed by
GitHub
parent
80c19eb317
commit
6ea419c8ec
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user