-
Notifications
You must be signed in to change notification settings - Fork 724
feat(amazonq): discard edits suggestion when the cursor is too far away #8174
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
Conversation
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
|
✅ I finished the code review, and didn't find any security or code quality issues. |
56ba3a2 to
d67774b
Compare
|
/retryBuilds |
| const endPosition = getEndOfEditPosition(originalCode, newCode) | ||
| editor.selection = new vscode.Selection(endPosition, endPosition) | ||
|
|
||
| // Move cursor to end of the actual changed content |
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.
duplicate code so removing
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
/retryBuilds |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
/retryBuilds |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
/retryBuilds |
|
/retryBuilds |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
/retryBuilds |
|
/retryBuilds |
|
/retryBuild |
|
/retryBuild |
Problem
If suggestion is at least 10 lines away, we don't want to show it to the user.
Solution
discard edits suggestion when the cursor position is at least 10 lines away
feature/xbranches will not be squash-merged at release time.