@@ -43,7 +43,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
4343 const session = {
4444 sessionId : 'test-session' ,
4545 firstCompletionDisplayLatency : 100 ,
46- requestStartTime : performance . now ( ) - 1000 ,
46+ requestStartTime : Date . now ( ) - 1000 ,
4747 }
4848
4949 provider . batchDiscardTelemetryForEditSuggestion ( items , session )
@@ -84,7 +84,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
8484 const session = {
8585 sessionId : 'test-session' ,
8686 firstCompletionDisplayLatency : 100 ,
87- requestStartTime : performance . now ( ) - 1000 ,
87+ requestStartTime : Date . now ( ) - 1000 ,
8888 }
8989
9090 provider . batchDiscardTelemetryForEditSuggestion ( items , session )
@@ -108,7 +108,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
108108 const session = {
109109 sessionId : 'test-session' ,
110110 firstCompletionDisplayLatency : 100 ,
111- requestStartTime : performance . now ( ) - 1000 ,
111+ requestStartTime : Date . now ( ) - 1000 ,
112112 }
113113
114114 provider . batchDiscardTelemetryForEditSuggestion ( items , session )
@@ -166,7 +166,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
166166 mockSessionManager . getActiveSession . returns ( {
167167 displayed : true ,
168168 suggestions : [ { isInlineEdit : true } ] ,
169- lastVisibleTime : performance . now ( ) ,
169+ lastVisibleTime : Date . now ( ) ,
170170 } )
171171
172172 const result = await provider . isCompletionActive ( )
@@ -176,7 +176,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
176176 } )
177177
178178 it ( 'should return true when VS Code command executes successfully' , async function ( ) {
179- const currentTime = performance . now ( )
179+ const currentTime = Date . now ( )
180180 mockSessionManager . getActiveSession . returns ( {
181181 displayed : true ,
182182 suggestions : [ { isInlineEdit : false } ] ,
@@ -192,7 +192,7 @@ describe('AmazonQInlineCompletionItemProvider', function () {
192192 } )
193193
194194 it ( 'should return false when VS Code command fails' , async function ( ) {
195- const oldTime = performance . now ( ) - 100 // Old timestamp (>50ms ago)
195+ const oldTime = Date . now ( ) - 100 // Old timestamp (>50ms ago)
196196 mockSessionManager . getActiveSession . returns ( {
197197 displayed : true ,
198198 suggestions : [ { isInlineEdit : false } ] ,
0 commit comments