File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { CodeAnalysisScope as CodeAnalysisScopeClientSide } from '../models/cons
3131import { Session } from '../../amazonqTest/chat/session/session'
3232import { sleep } from '../../shared/utilities/timeoutUtils'
3333import { getDiagnosticsDifferences , getDiagnosticsOfCurrentFile , toIdeDiagnostics } from './diagnosticsUtil'
34- import { Auth } from '../../auth'
34+ import { Auth } from '../../auth/auth '
3535
3636export class TelemetryHelper {
3737 // Some variables for client component latency
@@ -425,7 +425,7 @@ export class TelemetryHelper {
425425 e2eLatency = 0.0
426426 }
427427
428- let userTriggerDecisionEvent : CodeWhispererUserClient . UserTriggerDecisionEvent = {
428+ const userTriggerDecisionEvent : CodeWhispererUserClient . UserTriggerDecisionEvent = {
429429 sessionId : sessionId ,
430430 requestId : this . sessionDecisions [ 0 ] . codewhispererFirstRequestId ,
431431 customizationArn : selectedCustomization . arn === '' ? undefined : selectedCustomization . arn ,
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ import assert from 'assert'
77import { EditorContentController } from '../../../amazonq/commons/controllers/contentController'
88import { toTextEditor } from '../../testUtil'
99import { CWCTelemetryHelper } from '../../../codewhispererChat/controllers/chat/telemetryHelper'
10+ import { ChatSessionStorage } from '../../../codewhispererChat/storages/chatSession'
11+ import { TriggerEventsStorage } from '../../../codewhispererChat'
1012
1113describe ( 'contentController' , ( ) => {
1214 let controller : EditorContentController
1315
1416 beforeEach ( async ( ) => {
1517 controller = new EditorContentController ( )
16- CWCTelemetryHelper . instance
18+ CWCTelemetryHelper . instance = new CWCTelemetryHelper ( new ChatSessionStorage ( ) , new TriggerEventsStorage ( ) )
1719 } )
1820
1921 describe ( 'insertTextAtCursorPosition' , ( ) => {
@@ -33,7 +35,7 @@ describe('contentController', () => {
3335 }
3436 } )
3537
36- it ( 'insert code when left hand size has non empty character' , async ( ) => {
38+ it ( 'insert code when left hand size has non empty character 2 ' , async ( ) => {
3739 const editor = await toTextEditor ( 'def hello_world():\n ' , 'test.py' )
3840 if ( editor ) {
3941 const pos = new vscode . Position ( 0 , 4 )
You can’t perform that action at this time.
0 commit comments