File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/amazonq/src/app/inline Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments