@@ -246,8 +246,8 @@ export const handle_send_prompt = async (params: {
246246 command : 'SHOW_AUTO_CLOSING_MODAL' ,
247247 title :
248248 resolved_preset_names . length > 1
249- ? 'Chats have been initialized in the connected browser. '
250- : 'Chat has been initialized in the connected browser. '
249+ ? 'Chats have been initialized in the connected browser'
250+ : 'Chat has been initialized in the connected browser'
251251 } )
252252}
253253
@@ -274,14 +274,14 @@ async function show_presets_in_group_quick_pick(params: {
274274
275275 const presets_in_group : ConfigPresetFormat [ ] = [ ]
276276
277- if ( group_name === 'Ungrouped' ) {
277+ if ( group_name == 'Ungrouped' ) {
278278 const first_group_index = presets . findIndex ( ( p ) => ! p . chatbot )
279279 const ungrouped_presets =
280- first_group_index === - 1 ? presets : presets . slice ( 0 , first_group_index )
280+ first_group_index == - 1 ? presets : presets . slice ( 0 , first_group_index )
281281 presets_in_group . push ( ...ungrouped_presets . filter ( ( p ) => p . chatbot ) )
282282 } else {
283- const group_index = presets . findIndex ( ( p ) => p . name === group_name )
284- if ( group_index !== - 1 ) {
283+ const group_index = presets . findIndex ( ( p ) => p . name == group_name )
284+ if ( group_index != - 1 ) {
285285 for ( let i = group_index + 1 ; i < presets . length ; i ++ ) {
286286 const preset = presets [ i ]
287287 if ( ! preset . chatbot ) break
@@ -479,13 +479,13 @@ async function show_preset_quick_pick(params: {
479479 context . workspaceState . get < string > ( last_preset_key ) ??
480480 context . globalState . get < string > ( last_preset_key )
481481
482- if ( last_choice === 'Preset' && last_selected_preset ) {
482+ if ( last_choice == 'Preset' && last_selected_preset ) {
483483 const preset = presets . find ( ( p ) => p . name === last_selected_preset )
484484 if ( preset && ! preset . isPinned ) {
485485 let group_name = 'Ungrouped'
486486 if ( preset . chatbot ) {
487487 const preset_index = presets . findIndex (
488- ( p ) => p . name === last_selected_preset
488+ ( p ) => p . name == last_selected_preset
489489 )
490490 if ( preset_index > - 1 ) {
491491 for ( let i = preset_index - 1 ; i >= 0 ; i -- ) {
@@ -754,7 +754,7 @@ async function show_preset_quick_pick(params: {
754754
755755 if ( selected . preset_name ) {
756756 quick_pick . hide ( )
757- const preset = presets . find ( ( p ) => p . name === selected . preset_name ) !
757+ const preset = presets . find ( ( p ) => p . name == selected . preset_name ) !
758758 if ( params . get_is_preset_disabled ( preset ) ) {
759759 if (
760760 ! params . is_in_code_completions_mode &&
@@ -770,7 +770,7 @@ async function show_preset_quick_pick(params: {
770770 } else {
771771 let group_name = 'Ungrouped'
772772 const preset_index = presets . findIndex (
773- ( p ) => p . name === selected . preset_name
773+ ( p ) => p . name == selected . preset_name
774774 )
775775 if ( preset_index > - 1 ) {
776776 for ( let i = preset_index - 1 ; i >= 0 ; i -- ) {
0 commit comments