File tree Expand file tree Collapse file tree
apps/editor/src/features/search-files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export const search_files = async (params: {
188188 return undefined
189189 }
190190
191- if ( selected_items === 'intelligent' ) {
191+ if ( selected_items == 'intelligent' ) {
192192 const intelligent_result = await perform_intelligent_search_flow ( {
193193 files : matched_files ,
194194 workspace_provider : params . workspace_provider ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const prompt_for_intelligent_search_results = async (params: {
1616
1717 for ( const extracted of params . extracted_files ) {
1818 const matched = params . analysis . files_data . find (
19- ( f ) => f . display_path === extracted
19+ ( f ) => f . display_path == extracted
2020 )
2121 if ( matched ) {
2222 absolute_paths . push ( matched . file_path )
@@ -25,7 +25,7 @@ export const prompt_for_intelligent_search_results = async (params: {
2525 for ( const root of roots ) {
2626 const potential_abs = path . join ( root , extracted )
2727 if (
28- params . analysis . files_data . some ( ( f ) => f . file_path === potential_abs )
28+ params . analysis . files_data . some ( ( f ) => f . file_path == potential_abs )
2929 ) {
3030 absolute_paths . push ( potential_abs )
3131 break
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const search_files_by_term = async (params: {
1818} ) : Promise < string [ ] > => {
1919 const matched_files : string [ ] = [ ]
2020
21- if ( params . search_mode === 'semantic' ) {
21+ if ( params . search_mode == 'semantic' ) {
2222 const workspace_folders = vscode . workspace . workspaceFolders
2323 if ( ! workspace_folders ) return [ ]
2424
@@ -67,7 +67,7 @@ export const search_files_by_term = async (params: {
6767 . map ( ( item ) => item . file_path )
6868 }
6969
70- if ( params . search_mode === 'filename' ) {
70+ if ( params . search_mode == 'filename' ) {
7171 const keywords = params . search_term
7272 . split ( ',' )
7373 . map ( ( k ) => k . trim ( ) )
You can’t perform that action at this time.
0 commit comments