Skip to content

Commit d600336

Browse files
committed
refactor(amazonq): delegate language server to handle concurrent inline requests
1 parent 8f71426 commit d600336

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,6 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
300300
options: JSON.stringify(getAllRecommendationsOptions),
301301
})
302302

303-
// prevent concurrent API calls and write to shared state variables
304-
if (vsCodeState.isRecommendationsActive) {
305-
getLogger().info('Recommendations already active, returning empty')
306-
return []
307-
}
308-
309303
if (vsCodeState.isCodeWhispererEditing) {
310304
getLogger().info('Q is editing, returning empty')
311305
return []

0 commit comments

Comments
 (0)