From af545fb0185b371ac5ba9ecb6d8313f68ca5a7e6 Mon Sep 17 00:00:00 2001 From: Per Abich Date: Tue, 23 Apr 2024 08:00:45 +0200 Subject: [PATCH 1/2] Updated wrapper --- gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 gradlew diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 From 777f646670392eb42f0ebc44b8a53bbbb61e151c Mon Sep 17 00:00:00 2001 From: Per Abich Date: Tue, 23 Apr 2024 08:56:07 +0200 Subject: [PATCH 2/2] Added fix for #16 --- .../kotlin/com/chainstaysoftware/testing/ModuleAction.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/chainstaysoftware/testing/ModuleAction.kt b/src/main/kotlin/com/chainstaysoftware/testing/ModuleAction.kt index c8905d7..5a97b06 100644 --- a/src/main/kotlin/com/chainstaysoftware/testing/ModuleAction.kt +++ b/src/main/kotlin/com/chainstaysoftware/testing/ModuleAction.kt @@ -1,5 +1,6 @@ package com.chainstaysoftware.testing +import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.ide.highlighter.JavaFileType import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent @@ -14,7 +15,6 @@ import com.intellij.openapi.roots.ProjectFileIndex import com.intellij.psi.PsiFile import com.intellij.psi.search.FileTypeIndex import com.intellij.psi.search.GlobalSearchScope -import com.intellij.util.indexing.FileBasedIndex /** @@ -78,4 +78,8 @@ class ModuleAction : AnAction() { .filter { virtualFile -> instance.isInTestSourceContent(virtualFile) } .size } + + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.EDT + } }