You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(amazonq): Render first response before receiving all paginated inline completion results (#7663)
## Problem
Previous the pagination API call was blocking and it does not render
until all pagination API calls are done.
Without a force refresh of the inline ghost text, paginated response
will not be rendered.
## Solution
1. Keep doing paginated API call in the background.
2. Refresh the ghost text of inline completion when user press Left or
Right key to add paginated responses by calling VS Code native commands.
Note that we can do such refresh below whenever the pagination session
finish but that will result in inline completion flickering, hence it is
better to do it on demand when Left or Right is pressed.
```
await vscode.commands.executeCommand('editor.action.inlineSuggest.hide')
await vscode.commands.executeCommand('editor.action.inlineSuggest.trigger')
```
---
- 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.
0 commit comments