Skip to content

Commit a44ee15

Browse files
Move action update to background thread (#2139)
com.intellij.diagnostic.PluginException: Revise action update thread property #2129
1 parent 5f1d104 commit a44ee15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/actions/GenerateTestsAction.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.utbot.intellij.plugin.ui.actions
22

3+
import com.intellij.openapi.actionSystem.ActionUpdateThread
34
import com.intellij.openapi.actionSystem.AnAction
45
import com.intellij.openapi.actionSystem.AnActionEvent
56
import com.intellij.openapi.components.service
@@ -20,6 +21,8 @@ class GenerateTestsAction : AnAction() {
2021
}
2122
}
2223

24+
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
25+
2326
private fun accessByProjectSettings(e: AnActionEvent): Boolean {
2427
val experimentalLanguageSetting = e.project?.service<Settings>()?.experimentalLanguagesSupport
2528
val languagePackageName = LanguageAssistant.get(e)?.toString()

0 commit comments

Comments
 (0)