File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/amazonq/src/app/inline Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ import { InlineTutorialAnnotation } from './tutorials/inlineTutorialAnnotation'
4545import { TelemetryHelper } from './telemetryHelper'
4646import { getLogger } from 'aws-core-vscode/shared'
4747import { debounce , messageUtils } from 'aws-core-vscode/utils'
48+ import { sleep } from 'aws-core-vscode/shared'
4849
4950export class InlineCompletionManager implements Disposable {
5051 private disposable : Disposable
@@ -102,8 +103,8 @@ export class InlineCompletionManager implements Disposable {
102103 ) => {
103104 // TODO: also log the seen state for other suggestions in session
104105 // Calculate timing metrics before diagnostic delay
105- const totalSessionDisplayTime = Date . now ( ) - requestStartTime
106- await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
106+ const totalSessionDisplayTime = performance . now ( ) - requestStartTime
107+ await sleep ( 1000 )
107108 const diagnosticDiff = getDiagnosticsDifferences (
108109 this . sessionManager . getActiveSession ( ) ?. diagnosticsBeforeAccept ,
109110 getDiagnosticsOfCurrentFile ( )
You can’t perform that action at this time.
0 commit comments