We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b49a5d commit 98098f3Copy full SHA for 98098f3
packages/core/src/codewhisperer/util/zipUtil.ts
@@ -120,12 +120,8 @@ export class ZipUtil {
120
zip.addFile(zipEntryPath, Buffer.from(content, 'utf-8'))
121
122
if (scope === CodeWhispererConstants.CodeAnalysisScope.FILE_ON_DEMAND) {
123
- await this.processCombinedGitDiff(
124
- zip,
125
- [workspaceFolder.uri.fsPath],
126
- uri.fsPath,
127
- CodeWhispererConstants.CodeAnalysisScope.FILE_ON_DEMAND
128
- )
+ const gitDiffContent = `+++ b/${zipEntryPath}`
+ zip.addFile(ZipConstants.codeDiffFilePath, Buffer.from(gitDiffContent, 'utf-8'))
129
}
130
} else {
131
zip.addFile(uri.fsPath, Buffer.from(content, 'utf-8'))
0 commit comments