fix: normalize file paths to POSIX format in search results (#2569)

This commit is contained in:
Sam Hoang Van 2025-04-14 00:44:03 +07:00 committed by GitHub
parent caf1ae35e1
commit 494af3090a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,6 +139,7 @@ export async function searchWorkspaceFiles(
const isDirectory = fs.lstatSync(fullPath).isDirectory()
return {
...result,
path: result.path.toPosix(),
type: isDirectory ? ("folder" as const) : ("file" as const),
}
}