Skip to content

Commit 3c0a34b

Browse files
authored
refactor(amazonq): delegate language server to handle concurrent inline requests (aws#7952)
## Problem ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 8f71426 commit 3c0a34b

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)