File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
crates/chat-cli/src/cli/chat/tools Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -372,9 +372,8 @@ impl FsDirectory {
372
372
) ?)
373
373
}
374
374
375
- pub async fn invoke ( & self , ctx : & Context , updates : & mut impl Write ) -> Result < InvokeOutput > {
375
+ pub async fn invoke ( & self , ctx : & Context , _updates : & mut impl Write ) -> Result < InvokeOutput > {
376
376
let path = sanitize_path_tool_arg ( ctx, & self . path ) ;
377
- let cwd = ctx. env ( ) . current_dir ( ) ?;
378
377
let max_depth = self . depth ( ) ;
379
378
debug ! ( ?path, max_depth, "Reading directory at path with depth" ) ;
380
379
let mut result = Vec :: new ( ) ;
@@ -384,17 +383,6 @@ impl FsDirectory {
384
383
if depth > max_depth {
385
384
break ;
386
385
}
387
- let relative_path = format_path ( & cwd, & path) ;
388
- if !relative_path. is_empty ( ) {
389
- queue ! (
390
- updates,
391
- style:: Print ( "Reading: " ) ,
392
- style:: SetForegroundColor ( Color :: Green ) ,
393
- style:: Print ( & relative_path) ,
394
- style:: ResetColor ,
395
- style:: Print ( "\n " ) ,
396
- ) ?;
397
- }
398
386
let mut read_dir = ctx. fs ( ) . read_dir ( path) . await ?;
399
387
400
388
#[ cfg( windows) ]
You can’t perform that action at this time.
0 commit comments