Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export async function displaySvgDecoration(
isInlineEdit: true,
}
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
if (inlineCompletionProvider) {
// Only auto trigger on acceptance if there is a nextToken
if (inlineCompletionProvider && session.editsStreakPartialResultToken) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any case we return empty nextToken and still want to trigger GenerateCompletions without nextToken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a requirement at this point, the requirement is to exhaust cached suggestion on the model side

await inlineCompletionProvider.provideInlineCompletionItems(
editor.document,
endPosition,
Expand Down
Loading