File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/amazonq/src/app/inline/EditRendering Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,9 @@ export async function displaySvgDecoration(
318318 // Emit DISCARD telemetry for edit suggestion that can't be shown due to active completion
319319 const params = createDiscardTelemetryParams ( session , item )
320320 languageClient . sendNotification ( 'aws/logInlineCompletionSessionResults' , params )
321- getLogger ( ) . info ( 'Edit suggestion discarded due to active completion suggestion' )
321+ getLogger ( 'nextEditPrediction' ) . debug (
322+ `Auto discarded edit suggestion for active completion suggestion: ${ item . insertText as string } `
323+ )
322324 return
323325 }
324326
@@ -345,6 +347,9 @@ export async function displaySvgDecoration(
345347
346348 const isPatchValid = applyPatch ( e . document . getText ( ) , item . insertText as string )
347349 if ( ! isPatchValid ) {
350+ getLogger ( 'nextEditPrediction' ) . debug (
351+ `Auto rejected edit suggestion for invalid patch: ${ item . insertText as string } }`
352+ )
348353 void vscode . commands . executeCommand ( 'aws.amazonq.inline.rejectEdit' )
349354 }
350355 } )
You can’t perform that action at this time.
0 commit comments