File tree Expand file tree Collapse file tree
packages/ui/src/components/editor/panel/ChatInput/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const get_display_text = (
2525 return `Changes: ${ branch_name } `
2626 }
2727 if ( saved_context_keyword ) {
28- return `Saved context : ${ context_name } `
28+ return `Context : ${ context_name } `
2929 }
3030 return match
3131 }
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ export const get_highlighted_text = (params: {
6767 context_type
6868 ) } " data-context-name="${ escape_html (
6969 context_name
70- ) } " title="Saved Context: ${ escape_html (
71- context_name
72- ) } "><span class=" ${ styles [ 'keyword__icon' ] } "></span><span class="${
70+ ) } " title="Context: ${ escape_html ( context_name ) } "><span class=" ${
71+ styles [ 'keyword__icon' ]
72+ } "></span><span class="${
7373 styles [ 'keyword__text' ]
74- } ">Saved context : ${ escape_html ( context_name ) } </span></span>`
74+ } ">Context : ${ escape_html ( context_name ) } </span></span>`
7575 }
7676 return process_text_part_for_files ( part , params . context_file_paths )
7777 } )
@@ -118,11 +118,11 @@ export const get_highlighted_text = (params: {
118118 context_type
119119 ) } " data-context-name="${ escape_html (
120120 context_name
121- ) } " title="Saved Context: ${ escape_html ( context_name ) } "><span class="${
121+ ) } " title="Context: ${ escape_html ( context_name ) } "><span class="${
122122 styles [ 'keyword__icon' ]
123123 } "></span><span class="${
124124 styles [ 'keyword__text' ]
125- } ">Saved context : ${ escape_html ( context_name ) } </span></span>`
125+ } ">Context : ${ escape_html ( context_name ) } </span></span>`
126126 }
127127
128128 return process_text_part_for_files ( part , params . context_file_paths )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const map_display_pos_to_raw_pos = (
3333 display_match_length = 'Selection' . length
3434 is_replacement_match = true
3535 } else if ( saved_context_keyword ) {
36- display_match_length = `Saved context : ${ context_name } ` . length
36+ display_match_length = `Context : ${ context_name } ` . length
3737 is_replacement_match = true
3838 }
3939
@@ -104,7 +104,7 @@ export const map_raw_pos_to_display_pos = (
104104 display_match_length = 'Selection' . length
105105 is_replacement_match = true
106106 } else if ( saved_context_keyword ) {
107- display_match_length = `Saved context : ${ context_name } ` . length
107+ display_match_length = `Context : ${ context_name } ` . length
108108 is_replacement_match = true
109109 }
110110
You can’t perform that action at this time.
0 commit comments