Normalize all file paths to posix format when presenting to AI or user

This commit is contained in:
Saoud Rizwan
2024-09-22 19:20:10 -04:00
parent 1602ecfe67
commit 69e681ebce
9 changed files with 112 additions and 35 deletions

View File

@@ -30,7 +30,7 @@ export async function parseSourceCodeForDefinitionsTopLevel(dirPath: string): Pr
for (const file of filesToParse) {
const definitions = await parseFile(file, languageParsers)
if (definitions) {
result += `${path.relative(dirPath, file)}\n${definitions}\n`
result += `${path.relative(dirPath, file).toPosix()}\n${definitions}\n`
}
// else {
// filesWithoutDefinitions.push(file)