diff --git a/jetbrains/src/main/kotlin/com/sourcegraph/cody/autocomplete/action/TriggerAutocompleteActionHandler.kt b/jetbrains/src/main/kotlin/com/sourcegraph/cody/autocomplete/action/TriggerAutocompleteActionHandler.kt index d824bedc6e22..5cf849a26af7 100644 --- a/jetbrains/src/main/kotlin/com/sourcegraph/cody/autocomplete/action/TriggerAutocompleteActionHandler.kt +++ b/jetbrains/src/main/kotlin/com/sourcegraph/cody/autocomplete/action/TriggerAutocompleteActionHandler.kt @@ -13,7 +13,8 @@ class TriggerAutocompleteActionHandler : EditorActionHandler() { val logger = Logger.getInstance(TriggerAutocompleteActionHandler::class.java) override fun isEnabledForCaret(editor: Editor, caret: Caret, dataContext: DataContext): Boolean = - CodyEditorUtil.isEditorInstanceSupported(editor) + CodyEditorUtil.isEditorInstanceSupported(editor) && + CodyEditorUtil.isImplicitAutocompleteEnabledForEditor(editor) override fun doExecute(editor: Editor, caret: Caret?, dataContext: DataContext) { val offset = caret?.offset ?: editor.caretModel.currentCaret.offset