@@ -28,7 +28,7 @@ const get_find_relevant_files_config = async (params: {
2828 show_quick_pick ?: boolean
2929 context : vscode . ExtensionContext
3030 panel_provider : PanelProvider
31- config_id ?: string
31+ api_configuration_id ?: string
3232} ) : Promise < { provider : Provider ; config : ToolConfig } | undefined > => {
3333 const find_relevant_files_configs =
3434 await params . api_providers_manager . get_tool_configs ( )
@@ -43,19 +43,19 @@ const get_find_relevant_files_config = async (params: {
4343
4444 let selected_config : ToolConfig | null = null
4545
46- if ( params . config_id !== undefined ) {
46+ if ( params . api_configuration_id !== undefined ) {
4747 selected_config =
4848 find_relevant_files_configs . find (
49- ( c ) => get_tool_config_id ( c ) == params . config_id
49+ ( c ) => get_tool_config_id ( c ) == params . api_configuration_id
5050 ) || null
5151 if ( selected_config ) {
5252 let recents =
5353 params . context . workspaceState . get < string [ ] > (
5454 RECENTLY_USED_FIND_RELEVANT_FILES_CONFIG_IDS_STATE_KEY
5555 ) || [ ]
5656 recents = [
57- params . config_id ,
58- ...recents . filter ( ( id ) => id != params . config_id )
57+ params . api_configuration_id ,
58+ ...recents . filter ( ( id ) => id != params . api_configuration_id )
5959 ]
6060 params . context . workspaceState . update (
6161 RECENTLY_USED_FIND_RELEVANT_FILES_CONFIG_IDS_STATE_KEY ,
@@ -64,9 +64,9 @@ const get_find_relevant_files_config = async (params: {
6464
6565 if ( params . panel_provider ) {
6666 params . panel_provider . send_message ( {
67- command : 'SELECTED_CONFIGURATION_CHANGED ' ,
67+ command : 'SELECTED_API_CONFIGURATION_CHANGED ' ,
6868 prompt_type : 'find-relevant-files' ,
69- id : params . config_id
69+ id : params . api_configuration_id
7070 } )
7171 }
7272 }
@@ -149,7 +149,7 @@ const get_find_relevant_files_config = async (params: {
149149 if ( other_configs . length > 0 ) {
150150 if ( recent_configs . length > 0 ) {
151151 items . push ( {
152- label : 'other configurations' ,
152+ label : 'other API configurations' ,
153153 kind : vscode . QuickPickItemKind . Separator
154154 } )
155155 }
@@ -161,8 +161,8 @@ const get_find_relevant_files_config = async (params: {
161161
162162 const quick_pick = vscode . window . createQuickPick < Item > ( )
163163 quick_pick . items = await create_items ( )
164- quick_pick . title = 'Configurations'
165- quick_pick . placeholder = 'Select configuration'
164+ quick_pick . title = 'API Configurations'
165+ quick_pick . placeholder = 'Select an API configuration'
166166 quick_pick . matchOnDescription = true
167167 quick_pick . buttons = [
168168 {
@@ -225,7 +225,7 @@ const get_find_relevant_files_config = async (params: {
225225
226226 if ( params . panel_provider ) {
227227 params . panel_provider . send_message ( {
228- command : 'SELECTED_CONFIGURATION_CHANGED ' ,
228+ command : 'SELECTED_API_CONFIGURATION_CHANGED ' ,
229229 prompt_type : 'find-relevant-files' ,
230230 id : selected . id !
231231 } )
@@ -333,7 +333,7 @@ export const handle_find_relevant_files = async (
333333 return
334334 }
335335
336- let current_config_id = message . config_id
336+ let current_api_configuration_id = message . api_configuration_id
337337 let should_show_quick_pick = message . use_quick_pick
338338
339339 while ( true ) {
@@ -342,7 +342,7 @@ export const handle_find_relevant_files = async (
342342 show_quick_pick : should_show_quick_pick ,
343343 context : panel_provider . context ,
344344 panel_provider,
345- config_id : current_config_id
345+ api_configuration_id : current_api_configuration_id
346346 } )
347347
348348 if ( ! config_result ) {
@@ -424,6 +424,7 @@ export const handle_find_relevant_files = async (
424424 }
425425
426426 should_show_quick_pick = true
427- current_config_id = undefined
427+ current_api_configuration_id = undefined
428428 }
429429}
430+
0 commit comments