Skip to content

Commit dafaf60

Browse files
committed
p
1 parent 59f084e commit dafaf60

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const rerenderDeboucneInMs = 500
2323
enum RejectReason {
2424
DocumentChange = 'Invalid patch due to document change',
2525
NotApplicableToOriginal = 'ApplyPatch fail for original code',
26-
MaxRetry = 'Already retry 10 times',
26+
MaxRetry = `Already retry ${maxPrefixRetryCharDiff} times`,
2727
}
2828

2929
export class EditsSuggestionSvg {
@@ -165,8 +165,8 @@ export class EditsSuggestionSvg {
165165
this.autoReject(RejectReason.NotApplicableToOriginal)
166166
}
167167
} catch (e) {
168-
// TODO: format
169-
this.logger.error(`${e}`)
168+
this.logger.error(`encountered error while processing edit suggestion when users type ${e}`)
169+
// TODO: Maybe we should auto reject/hide suggestions in this scenario
170170
}
171171
}
172172

packages/amazonq/src/app/inline/completion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
351351
return []
352352
}
353353

354+
// Make edit suggestion blocking
354355
if (getContext('aws.amazonq.editSuggestionActive') === true) {
355356
return []
356357
}

0 commit comments

Comments
 (0)