Skip to content

Commit 6185168

Browse files
committed
test
1 parent b04d51f commit 6185168

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/amazonq/test/e2e/inline/inline.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ describe('Amazon Q Inline', async function () {
5252
console.log(`telemetry:\n %O`, suggestionStates)
5353
}
5454
await closeAllEditors()
55+
56+
// for some reason multiple codewhisperer events are kicking off at the same time??
57+
await sleep(10000)
5558
})
5659

5760
async function setupEditor({ name, contents }: { name?: string; contents?: string } = {}) {

packages/core/src/codewhisperer/service/recommendationHandler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,11 @@ export class RecommendationHandler {
526526
const session = CodeWhispererSessionState.instance.getSession()
527527
// eslint-disable-next-line aws-toolkits/no-console-log
528528
console.log('reporting user decision telemetry')
529+
// eslint-disable-next-line aws-toolkits/no-console-log
530+
console.log(`session id: ${session.sessionId}, request id: ${this.requestId}`)
531+
// eslint-disable-next-line aws-toolkits/no-console-log
532+
console.log(`stack: %O`, new Error().stack)
533+
console.trace()
529534
if (session.sessionId === '' || this.requestId === '') {
530535
return
531536
}

0 commit comments

Comments
 (0)