-
Notifications
You must be signed in to change notification settings - Fork 749
feat(amazonq): pre-fetch next recommendations for inline completions #6419
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
|
| @@ -0,0 +1,4 @@ | |||
| { | |||
| "type": "Feature", | |||
| "description": "prefetch next recommendations when possible to reduce suggestion latency" | |||
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.
| "description": "prefetch next recommendations when possible to reduce suggestion latency" | |
| "description": "Inline suggestions: Pre-fetch recommendations to reduce suggestion latency." |
| describe('onAcceptance', function () { | ||
| beforeEach(async function () { | ||
| const session = CodeWhispererSessionState.instance.getSession() |
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.
| describe('onAcceptance', function () { | |
| beforeEach(async function () { | |
| const session = CodeWhispererSessionState.instance.getSession() | |
| const session = CodeWhispererSessionState.instance.getSession() | |
| describe('onAcceptance', function () { | |
| beforeEach(async function () { |
Does the variable need to be duplicated? Applicable throughout PR (for tests).
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.
yes that's a good callout, thanks Max
| firstSuggestionShowTime = 0 | ||
| perceivedLatency = 0 | ||
| // Per-session states | ||
| constructor() { |
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.
Can you just initialize all these directly in the class definition above? It would cut the amount of code in half and still be understandable.
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.
yea that sounds good tome
hayemaxi
left a 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.
LGTM pending CI
|
fixing CI failure |
…ws#6419) ## Problem To support complex recommendations broken into multiple chunks, we need the ability to immediately show user next recommendation when they accept previous one ## Solution pre-fetch next recommendation predicting user accept first recommendation when showing them to user, and if user did accept first recommendation, immediately show next recommendation --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Will Lo <[email protected]>
Problem
To support complex recommendations broken into multiple chunks, we need the ability to immediately show user next recommendation when they accept previous one
Solution
pre-fetch next recommendation predicting user accept first recommendation when showing them to user, and if user did accept first recommendation, immediately show next recommendation
feature/xbranches will not be squash-merged at release time.