Skip to content

Commit fbde320

Browse files
committed
patch
1 parent be2da2b commit fbde320

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/amazonq/src/app/inline/completion.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
274274
return []
275275
}
276276

277+
// yield event loop to let the document listen catch updates
278+
await sleep(1)
279+
277280
let logstr = `GenerateCompletion metadata:\\n`
278281
try {
279282
const t0 = performance.now()

packages/amazonq/src/app/inline/recommendationService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ export class RecommendationService {
122122
})
123123
const t0 = performance.now()
124124

125-
// Yield event loop to let the document listen catch updates
126-
await sleep(1)
127125
// Best effort estimate of deletion
128126
const isTriggerByDeletion = documentEventListener.isLastEventDeletion(document.uri.fsPath)
129127

0 commit comments

Comments
 (0)