@@ -9,7 +9,13 @@ import { localize } from '../../../../../nls.js';
9
9
import { ConfigurationScope , type IConfigurationPropertySchema } from '../../../../../platform/configuration/common/configurationRegistry.js' ;
10
10
11
11
export const enum TerminalChatAgentToolsSettingId {
12
- AutoApprove = 'chat.agent.terminal.autoApprove' ,
12
+ AutoApprove = 'chat.tools.terminal.autoApprove' ,
13
+
14
+ DeprecatedAutoApprove1 = 'chat.agent.terminal.allowList' ,
15
+ DeprecatedAutoApprove2 = 'chat.agent.terminal.denyList' ,
16
+ DeprecatedAutoApprove3 = 'github.copilot.chat.agent.terminal.allowList' ,
17
+ DeprecatedAutoApprove4 = 'github.copilot.chat.agent.terminal.denyList' ,
18
+ DeprecatedAutoApprove5 = 'chat.agent.terminal.autoApprove' ,
13
19
}
14
20
15
21
export interface ITerminalChatAgentToolsConfiguration {
@@ -96,3 +102,16 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
96
102
} ,
97
103
}
98
104
} ;
105
+
106
+ for ( const id of [
107
+ TerminalChatAgentToolsSettingId . DeprecatedAutoApprove1 ,
108
+ TerminalChatAgentToolsSettingId . DeprecatedAutoApprove2 ,
109
+ TerminalChatAgentToolsSettingId . DeprecatedAutoApprove3 ,
110
+ TerminalChatAgentToolsSettingId . DeprecatedAutoApprove4 ,
111
+ TerminalChatAgentToolsSettingId . DeprecatedAutoApprove5 ,
112
+ ] ) {
113
+ terminalChatAgentToolsConfiguration [ id ] = {
114
+ deprecated : true ,
115
+ markdownDeprecationMessage : localize ( 'autoApprove.deprecated' , 'Use {0} instead' , `\`#${ TerminalChatAgentToolsSettingId . AutoApprove } #\`` )
116
+ } ;
117
+ }
0 commit comments