Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
p
  • Loading branch information
Will-ShaoHua committed Nov 17, 2025
commit dafaf6086c096ea3496428ca30beca43efa16169
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const rerenderDeboucneInMs = 500
enum RejectReason {
DocumentChange = 'Invalid patch due to document change',
NotApplicableToOriginal = 'ApplyPatch fail for original code',
MaxRetry = 'Already retry 10 times',
MaxRetry = `Already retry ${maxPrefixRetryCharDiff} times`,
}

export class EditsSuggestionSvg {
Expand Down Expand Up @@ -165,8 +165,8 @@ export class EditsSuggestionSvg {
this.autoReject(RejectReason.NotApplicableToOriginal)
}
} catch (e) {
// TODO: format
this.logger.error(`${e}`)
this.logger.error(`encountered error while processing edit suggestion when users type ${e}`)
// TODO: Maybe we should auto reject/hide suggestions in this scenario
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/amazonq/src/app/inline/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
return []
}

// Make edit suggestion blocking
if (getContext('aws.amazonq.editSuggestionActive') === true) {
return []
}
Expand Down
Loading