-
Notifications
You must be signed in to change notification settings - Fork 242
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
fix(amazonq): code review navigation not focusing selected issues #5326
base: main
Are you sure you want to change the base?
Conversation
…e issues does not focus code editor to line nor show issue details
@@ -390,8 +395,31 @@ internal class CodeWhispererCodeScanResultsView(private val project: Project, pr | |||
} | |||
} | |||
|
|||
// Move navigateToIssue as a private class function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh before, the navigateToIssue was in the On double click function. This comment does not make sense anymore now. Let me delete it.
|
||
showIssueDetails(issue, defaultScope) | ||
|
||
synchronized(issueNode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly does the synchronized block solve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a logic transfer from the OnDoubleClick function.
My guess is that it prevents the issue from being modified (by auto scan completion which modifies the code issues or other selection?) during the execution of navigating to the line in the Editor, but I have not been able to reproduce such scenario. I left the synchronized block there just in case.
/retryBuilds |
Types of changes
Description
Problem:
When reviewing code issues in Amazon Q, clicking or using arrow keys to select an issue does not:
Solution:
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.