File tree Expand file tree Collapse file tree
src/commands/find-relevant-files-command Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " gemini-coder" ,
33 "displayName" : " Code Web Chat" ,
44 "description" : " AI coding without agents (CWC)" ,
5- "version" : " 1.919 .0" ,
5+ "version" : " 1.920 .0" ,
66 "scripts" : {
77 "build" : " npx vsce package --no-dependencies" ,
88 "vscode:prepublish" : " rimraf out && npm run compile" ,
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export const find_relevant_files_command = (
8787 }
8888
8989 let go_back_to_shrink = false
90+ let force_prompt = false
9091 while ( true ) {
9192 const tokens_to_process = shrink_result
9293 ? analysis . shrink_tokens
@@ -95,9 +96,12 @@ export const find_relevant_files_command = (
9596 api_providers_manager,
9697 extension_context,
9798 configs,
98- tokens_to_process
99+ tokens_to_process,
100+ force_prompt
99101 } )
100102
103+ force_prompt = false
104+
101105 if ( config_result === 'back' ) {
102106 go_back_to_shrink = true
103107 break
@@ -118,7 +122,11 @@ export const find_relevant_files_command = (
118122 selected_config
119123 )
120124
121- if ( api_result === 'cancel' || api_result === 'error' ) return
125+ if ( api_result === 'cancel' ) return
126+ if ( api_result === 'error' ) {
127+ force_prompt = true
128+ continue
129+ }
122130 if ( api_result === 'error_no_files' ) {
123131 vscode . window . showWarningMessage (
124132 t ( 'command.find-relevant-files.error.no-files-found' )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export const prompt_for_config = async (params: {
1414 extension_context : vscode . ExtensionContext
1515 configs : ToolConfig [ ]
1616 tokens_to_process : number
17+ force_prompt ?: boolean
1718} ) : Promise <
1819 | { config : ToolConfig ; provider : Provider ; skipped : boolean }
1920 | 'back'
@@ -22,16 +23,20 @@ export const prompt_for_config = async (params: {
2223 let selected_config : ToolConfig | undefined = undefined
2324 let skipped = false
2425
25- const default_config =
26- await params . api_providers_manager . get_default_find_relevant_files_config ( )
26+ if ( ! params . force_prompt ) {
27+ const default_config =
28+ await params . api_providers_manager . get_default_find_relevant_files_config ( )
2729
28- if ( default_config ) {
29- selected_config = default_config
30- skipped = true
31- } else if ( params . configs . length === 1 ) {
32- selected_config = params . configs [ 0 ]
33- skipped = true
34- } else {
30+ if ( default_config ) {
31+ selected_config = default_config
32+ skipped = true
33+ } else if ( params . configs . length === 1 ) {
34+ selected_config = params . configs [ 0 ]
35+ skipped = true
36+ }
37+ }
38+
39+ if ( ! selected_config ) {
3540 const create_items = ( ) => {
3641 const recent_ids =
3742 params . extension_context . workspaceState . get < string [ ] > (
You can’t perform that action at this time.
0 commit comments