From a7d0e1928708ed7fe4a1d0e33efcad57184151dd Mon Sep 17 00:00:00 2001 From: Will Lo Date: Thu, 3 Jul 2025 03:18:54 -0700 Subject: [PATCH] fix(amazonq): nep edits might be rendered as completion in ghost text --- packages/amazonq/src/app/inline/completion.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/amazonq/src/app/inline/completion.ts b/packages/amazonq/src/app/inline/completion.ts index 3b5303f35bb..8057da390bd 100644 --- a/packages/amazonq/src/app/inline/completion.ts +++ b/packages/amazonq/src/app/inline/completion.ts @@ -265,6 +265,9 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem const prefix = document.getText(new Range(prevStartPosition, position)) const prevItemMatchingPrefix = [] for (const item of this.sessionManager.getActiveRecommendation()) { + if (item.isInlineEdit) { + break + } const text = typeof item.insertText === 'string' ? item.insertText : item.insertText.value if (text.startsWith(prefix) && position.isAfterOrEqual(prevStartPosition)) { item.command = {