Skip to content

Commit 8f71426

Browse files
authored
config(amazonq): detailed debug logs for NEP (aws#7966)
## Problem ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 1ca10f2 commit 8f71426

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)