mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Show api_req_started message while verbose details are being built for smoother ux
This commit is contained in:
@@ -105,10 +105,10 @@ export async function listFiles(dirPath: string, recursive: boolean): Promise<st
|
||||
// globby doesnt natively support top down level by level globbing, so we implement it ourselves
|
||||
async function globbyLevelByLevel(options?: Options) {
|
||||
let results: string[] = []
|
||||
let currentLevel = 1
|
||||
let currentLevel = 0
|
||||
while (results.length < LIST_FILES_LIMIT) {
|
||||
// Construct the glob pattern for the current level
|
||||
const pattern = `${"*/".repeat(currentLevel)}*`
|
||||
const pattern = currentLevel === 0 ? "*" : `${"*/".repeat(currentLevel)}*`
|
||||
|
||||
// Get files and directories at the current level
|
||||
const filesAtLevel = await globby(pattern, options)
|
||||
|
||||
Reference in New Issue
Block a user