Skip to content

Commit eb3ceee

Browse files
authored
config(amazonq): nep only auto trigger on acceptance if there is nextToken (#7641)
## Problem NEP on acceptance trigger should only happen if there is a next token ## Solution --- - 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.
1 parent e0d2cbf commit eb3ceee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/amazonq/src/app/inline/EditRendering/displayImage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ export async function displaySvgDecoration(
324324
isInlineEdit: true,
325325
}
326326
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
327-
if (inlineCompletionProvider) {
327+
// Only auto trigger on acceptance if there is a nextToken
328+
if (inlineCompletionProvider && session.editsStreakPartialResultToken) {
328329
await inlineCompletionProvider.provideInlineCompletionItems(
329330
editor.document,
330331
endPosition,

0 commit comments

Comments
 (0)