diff --git a/src/main/kotlin/com/sourcegraph/cody/autocomplete/CodyAutocompleteManager.kt b/src/main/kotlin/com/sourcegraph/cody/autocomplete/CodyAutocompleteManager.kt index e1e041db25..b67264f2b5 100644 --- a/src/main/kotlin/com/sourcegraph/cody/autocomplete/CodyAutocompleteManager.kt +++ b/src/main/kotlin/com/sourcegraph/cody/autocomplete/CodyAutocompleteManager.kt @@ -150,7 +150,7 @@ class CodyAutocompleteManager { isCommandExcluded(currentCommand)) { return } - if (CodyAccount.hasActiveAccount()) { + if (!CodyAccount.hasActiveAccount()) { if (isTriggeredExplicitly) { HintManager.getInstance().showErrorHint(editor, "Cody: Sign in to use autocomplete") CodyToolWindowContent.show(project)