Skip to content

Commit 826f298

Browse files
committed
fix: normalize file paths to POSIX format in search results
1 parent 8bb3839 commit 826f298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/search/file-search.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export async function searchWorkspaceFiles(
139139
const isDirectory = fs.lstatSync(fullPath).isDirectory()
140140
return {
141141
...result,
142+
path: result.path.toPosix(),
142143
type: isDirectory ? ("folder" as const) : ("file" as const),
143144
}
144145
}

0 commit comments

Comments
 (0)