Skip to content

Commit 0094590

Browse files
committed
config(amazonq): detailed debug logs for NEP
1 parent 1ca10f2 commit 0094590

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)