File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/web/src/features/chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export const createCodeSearchTool = (selectedRepos: string[]) => tool({
166166 . optional ( ) ,
167167 filterByFilepaths : z
168168 . array ( z . string ( ) )
169- . describe ( `Scope the search to the provided filepaths.` )
169+ . describe ( `Scope the search to the provided filepaths. Each filepath is a regular expression matched against the full file path. ` )
170170 . optional ( ) ,
171171 caseSensitive : z
172172 . boolean ( )
@@ -206,7 +206,7 @@ export const createCodeSearchTool = (selectedRepos: string[]) => tool({
206206 }
207207
208208 if ( filepaths . length > 0 ) {
209- query += ` (file:${ filepaths . map ( filepath => escapeStringRegexp ( filepath ) ) . join ( ' or file:' ) } )` ;
209+ query += ` (file:${ filepaths . join ( ' or file:' ) } )` ;
210210 }
211211
212212 if ( ref ) {
You can’t perform that action at this time.
0 commit comments