Skip to content

Commit dc52c01

Browse files
committed
Fix for windows file review
1 parent eac027c commit dc52c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/codewhisperer/util/zipUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class ZipUtil {
120120
zip.addFile(zipEntryPath, Buffer.from(content, 'utf-8'))
121121

122122
if (scope === CodeWhispererConstants.CodeAnalysisScope.FILE_ON_DEMAND) {
123-
const gitDiffContent = `+++ b/${zipEntryPath}`
123+
const gitDiffContent = `+++ b/${path.normalize(zipEntryPath)}` // Sending file path in payload for LLM code review
124124
zip.addFile(ZipConstants.codeDiffFilePath, Buffer.from(gitDiffContent, 'utf-8'))
125125
}
126126
} else {

0 commit comments

Comments
 (0)