Skip to content

Commit 78528c7

Browse files
committed
Fix state reset listener
1 parent 901dd69 commit 78528c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/browser/languageModelToolsService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export class LanguageModelToolsService extends Disposable implements ILanguageMo
122122

123123
// Clear out warning accepted state if the setting is disabled
124124
this._register(Event.runAndSubscribe(this._configurationService.onDidChangeConfiguration, e => {
125-
if (!e || e.affectsConfiguration(AutoApproveStorageKeys.GlobalAutoApproveOptIn)) {
126-
if (this._configurationService.getValue(AutoApproveStorageKeys.GlobalAutoApproveOptIn) !== true) {
125+
if (!e || e.affectsConfiguration(ChatConfiguration.GlobalAutoApprove)) {
126+
if (this._configurationService.getValue(ChatConfiguration.GlobalAutoApprove) !== true) {
127127
this._storageService.remove(AutoApproveStorageKeys.GlobalAutoApproveOptIn, StorageScope.APPLICATION);
128128
}
129129
}

0 commit comments

Comments
 (0)