We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77472f5 + bea4abc commit 7f62ee4Copy full SHA for 7f62ee4
packages/amazonq/src/app/inline/completion.ts
@@ -265,6 +265,10 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
265
const prefix = document.getText(new Range(prevStartPosition, position))
266
const prevItemMatchingPrefix = []
267
for (const item of this.sessionManager.getActiveRecommendation()) {
268
+ // if item is an Edit suggestion, insertText is a diff instead of new code contents, skip the logic to check for prefix.
269
+ if (item.isInlineEdit) {
270
+ continue
271
+ }
272
const text = typeof item.insertText === 'string' ? item.insertText : item.insertText.value
273
if (text.startsWith(prefix) && position.isAfterOrEqual(prevStartPosition)) {
274
item.command = {
0 commit comments