@@ -123,7 +123,10 @@ export class SettingsProvider {
123123 } else if ( message . command == 'CHANGE_MODEL_PROVIDER_KEY' ) {
124124 await handle_change_model_provider_key ( this , message )
125125 } else if ( message . command == 'GET_CODE_AT_CURSOR_CONFIGURATIONS' ) {
126- await handle_get_configurations ( this , 'code-at-cursor' )
126+ await handle_get_configurations ( {
127+ provider : this ,
128+ type : 'code-at-cursor'
129+ } )
127130 } else if ( message . command == 'REORDER_CODE_AT_CURSOR_CONFIGURATIONS' ) {
128131 await handle_reorder_configuration (
129132 this ,
@@ -145,7 +148,10 @@ export class SettingsProvider {
145148 'code-at-cursor'
146149 )
147150 } else if ( message . command == 'GET_EDIT_CONTEXT_CONFIGURATIONS' ) {
148- await handle_get_configurations ( this , 'edit-context' )
151+ await handle_get_configurations ( {
152+ provider : this ,
153+ type : 'edit-context'
154+ } )
149155 } else if ( message . command == 'REORDER_EDIT_CONTEXT_CONFIGURATIONS' ) {
150156 await handle_reorder_configuration (
151157 this ,
@@ -169,7 +175,10 @@ export class SettingsProvider {
169175 } else if ( message . command == 'UPDATE_EDIT_FORMAT_INSTRUCTIONS' ) {
170176 await handle_update_edit_format_instructions ( message )
171177 } else if ( message . command == 'GET_INTELLIGENT_UPDATE_CONFIGURATIONS' ) {
172- await handle_get_configurations ( this , 'intelligent-update' )
178+ await handle_get_configurations ( {
179+ provider : this ,
180+ type : 'intelligent-update'
181+ } )
173182 } else if (
174183 message . command == 'REORDER_INTELLIGENT_UPDATE_CONFIGURATIONS'
175184 ) {
@@ -195,7 +204,10 @@ export class SettingsProvider {
195204 'intelligent-update'
196205 )
197206 } else if ( message . command == 'GET_PRUNE_CONTEXT_CONFIGURATIONS' ) {
198- await handle_get_configurations ( this , 'prune-context' )
207+ await handle_get_configurations ( {
208+ provider : this ,
209+ type : 'prune-context'
210+ } )
199211 } else if ( message . command == 'REORDER_PRUNE_CONTEXT_CONFIGURATIONS' ) {
200212 await handle_reorder_configuration (
201213 this ,
@@ -209,7 +221,10 @@ export class SettingsProvider {
209221 'prune-context'
210222 )
211223 } else if ( message . command == 'GET_VOICE_INPUT_CONFIGURATIONS' ) {
212- await handle_get_configurations ( this , 'voice-input' )
224+ await handle_get_configurations ( {
225+ provider : this ,
226+ type : 'voice-input'
227+ } )
213228 } else if ( message . command == 'REORDER_VOICE_INPUT_CONFIGURATIONS' ) {
214229 await handle_reorder_configuration (
215230 this ,
@@ -229,7 +244,10 @@ export class SettingsProvider {
229244 'voice-input'
230245 )
231246 } else if ( message . command == 'GET_COMMIT_MESSAGES_CONFIGURATIONS' ) {
232- await handle_get_configurations ( this , 'commit-messages' )
247+ await handle_get_configurations ( {
248+ provider : this ,
249+ type : 'commit-messages'
250+ } )
233251 } else if (
234252 message . command == 'REORDER_COMMIT_MESSAGES_CONFIGURATIONS'
235253 ) {
@@ -326,14 +344,32 @@ export class SettingsProvider {
326344 vscode . workspace . onDidChangeConfiguration ( ( e ) => {
327345 if ( e . affectsConfiguration ( 'codeWebChat' ) ) {
328346 void handle_get_model_providers ( this )
329- void handle_get_configurations ( this , 'code-at-cursor' )
330- void handle_get_configurations ( this , 'commit-messages' )
331- void handle_get_configurations ( this , 'edit-context' )
347+ void handle_get_configurations ( {
348+ provider : this ,
349+ type : 'code-at-cursor'
350+ } )
351+ void handle_get_configurations ( {
352+ provider : this ,
353+ type : 'commit-messages'
354+ } )
355+ void handle_get_configurations ( {
356+ provider : this ,
357+ type : 'edit-context'
358+ } )
332359 void handle_get_edit_context_system_instructions ( this )
333360 void handle_get_edit_format_instructions ( this )
334- void handle_get_configurations ( this , 'voice-input' )
335- void handle_get_configurations ( this , 'intelligent-update' )
336- void handle_get_configurations ( this , 'prune-context' )
361+ void handle_get_configurations ( {
362+ provider : this ,
363+ type : 'voice-input'
364+ } )
365+ void handle_get_configurations ( {
366+ provider : this ,
367+ type : 'intelligent-update'
368+ } )
369+ void handle_get_configurations ( {
370+ provider : this ,
371+ type : 'prune-context'
372+ } )
337373 void handle_get_context_size_warning_threshold ( this )
338374 void handle_get_commit_message_instructions ( this )
339375 void handle_get_commit_message_auto_accept_after ( this )
0 commit comments