File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/core/src/codewhisperer/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { FeatureUseCase } from '../models/constants'
2424import { ChildProcess , ChildProcessOptions } from '../../shared/utilities/processUtils'
2525import { ProjectZipError } from '../../amazonqTest/error'
2626import { removeAnsi } from '../../shared/utilities/textUtilities'
27+ import { normalize } from '../../shared/utilities/pathUtils'
2728
2829export interface ZipMetadata {
2930 rootDir : string
@@ -122,7 +123,7 @@ export class ZipUtil {
122123 zip . addFile ( zipEntryPath , Buffer . from ( content , 'utf-8' ) )
123124
124125 if ( scope === CodeWhispererConstants . CodeAnalysisScope . FILE_ON_DEMAND ) {
125- const gitDiffContent = `+++ b/${ path . normalize ( zipEntryPath ) . replaceAll ( path . win32 . sep , path . posix . sep ) } ` // Sending file path in payload for LLM code review
126+ const gitDiffContent = `+++ b/${ normalize ( zipEntryPath ) } ` // Sending file path in payload for LLM code review
126127 zip . addFile ( ZipConstants . codeDiffFilePath , Buffer . from ( gitDiffContent , 'utf-8' ) )
127128 }
128129 } else {
You can’t perform that action at this time.
0 commit comments