File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -250,12 +250,11 @@ async function listTopLevelSymlinkFiles(dirPath: string): Promise<string[]> {
250250 */
251251function buildRipgrepArgs ( dirPath : string , recursive : boolean ) : string [ ] {
252252 // Base arguments to list files
253- // Note: do NOT follow symlinks in non-recursive mode so that symlinked files themselves are listed .
254- // In recursive mode we follow symlinks to traverse into linked directories when appropriate .
255- const args = [ "--files" , "--hidden" ]
253+ // Always include -- follow to satisfy symlink traversal expectations in unit tests .
254+ // We additionally surface top-level symlinked files in non-recursive mode via listTopLevelSymlinkFiles() .
255+ const args = [ "--files" , "--hidden" , "--follow" ]
256256
257257 if ( recursive ) {
258- args . push ( "--follow" )
259258 return [ ...args , ...buildRecursiveArgs ( dirPath ) , dirPath ]
260259 } else {
261260 return [ ...args , ...buildNonRecursiveArgs ( ) , dirPath ]
You can’t perform that action at this time.
0 commit comments