Skip to content

Commit f1f39ab

Browse files
authored
fix(amazonq): Disable auto-suggestions when paused in the status bar (#5880)
* fix(amazonq): Disable auto-suggestions when paused in the status bar widget * added changelog * Enable manual calls even when auto-suggestions are paused * switched order of suggestions
1 parent 5335ed8 commit f1f39ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix auto-suggestions being shown when suggestions are paused"
4+
}

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/QInlineCompletionProvider.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,10 @@ class QInlineCompletionProvider(private val cs: CoroutineScope) : InlineCompleti
592592
val project = editor.project ?: return false
593593

594594
if (!isQConnected(project)) return false
595-
if (!CodeWhispererExplorerActionManager.getInstance().isAutoEnabled() && event.isManualCall()) return false
596595
if (QRegionProfileManager.getInstance().hasValidConnectionButNoActiveProfile(project)) return false
596+
if (event.isManualCall()) return true
597+
if (!CodeWhispererExplorerActionManager.getInstance().isAutoEnabled()) return false
598+
597599
return true
598600
}
599601
}

0 commit comments

Comments
 (0)