File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/amazonq/src/app/inline Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const rerenderDeboucneInMs = 500
2323enum 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
2929export 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments