-
Notifications
You must be signed in to change notification settings - Fork 745
fix(amazonq): Improved LLM code review for file review #6162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "type": "Bug Fix", | ||
| "description": "Imrpoved LLm code review for file review." | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,12 +120,8 @@ export class ZipUtil { | |
| zip.addFile(zipEntryPath, Buffer.from(content, 'utf-8')) | ||
|
|
||
| if (scope === CodeWhispererConstants.CodeAnalysisScope.FILE_ON_DEMAND) { | ||
| await this.processCombinedGitDiff( | ||
| zip, | ||
| [workspaceFolder.uri.fsPath], | ||
| uri.fsPath, | ||
| CodeWhispererConstants.CodeAnalysisScope.FILE_ON_DEMAND | ||
| ) | ||
| const gitDiffContent = `+++ b/${zipEntryPath}` | ||
| zip.addFile(ZipConstants.codeDiffFilePath, Buffer.from(gitDiffContent, 'utf-8')) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this covered by some sort of test?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, code diff format is not covered by tests. I have to add tests for both project and file review. Will add them in followups.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add a comment explaining why we are doing this? It's hard to understand just by reading the code
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added comment and corrected this for windows as well. |
||
| } | ||
| } else { | ||
| zip.addFile(uri.fsPath, Buffer.from(content, 'utf-8')) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.