add required action override
This commit is contained in:
parent
4a96bf7343
commit
3abe7c33c0
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.github.continuedev.continueintellijextension.autocomplete
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread
|
||||
import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys
|
||||
|
|
@ -27,4 +28,8 @@ class CancelAutocompleteAction : AnAction() {
|
|||
val editor: Editor? = e.getData(CommonDataKeys.EDITOR)
|
||||
return project != null && editor != null && editor.contentComponent.hasFocus()
|
||||
}
|
||||
|
||||
override fun getActionUpdateThread(): ActionUpdateThread {
|
||||
return ActionUpdateThread.BGT
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue