@@ -36,7 +36,7 @@ type Props = {
3636 set_instructions : (
3737 value : string ,
3838 prompt_type :
39- | 'ask-about-context '
39+ | 'ask-about-files '
4040 | 'edit-files'
4141 | 'without-files'
4242 | 'code-at-cursor'
@@ -197,7 +197,7 @@ export const Main: React.FC<Props> = (props) => {
197197 let history : string [ ] | undefined
198198 let set_history : React . Dispatch < React . SetStateAction < string [ ] | undefined > >
199199
200- if ( current_prompt_type == 'ask-about-context ' ) {
200+ if ( current_prompt_type == 'ask-about-files ' ) {
201201 history = ask_history
202202 set_history = set_ask_history
203203 } else if ( current_prompt_type == 'edit-files' ) {
@@ -411,8 +411,7 @@ export const Main: React.FC<Props> = (props) => {
411411 } else if ( current_prompt_type == 'find-relevant-files' ) {
412412 return props . find_relevant_files_instructions
413413 }
414- if ( current_prompt_type == 'ask-about-context' )
415- return props . ask_instructions
414+ if ( current_prompt_type == 'ask-about-files' ) return props . ask_instructions
416415 if ( current_prompt_type == 'edit-files' ) return props . edit_instructions
417416 if ( current_prompt_type == 'without-files' )
418417 return props . no_context_instructions
@@ -569,7 +568,7 @@ export const Main: React.FC<Props> = (props) => {
569568 }
570569
571570 const instructions =
572- current_prompt_type == 'ask-about-context '
571+ current_prompt_type == 'ask-about-files '
573572 ? props . ask_instructions
574573 : current_prompt_type == 'edit-files'
575574 ? props . edit_instructions
@@ -586,7 +585,7 @@ export const Main: React.FC<Props> = (props) => {
586585 }
587586
588587 let current_history : string [ ] | undefined
589- if ( current_prompt_type == 'ask-about-context ' ) {
588+ if ( current_prompt_type == 'ask-about-files ' ) {
590589 current_history = ask_history
591590 } else if ( current_prompt_type == 'edit-files' ) {
592591 current_history = edit_history
0 commit comments