Skip to content

Commit

Permalink
Change actions to use ActionUpdateThread.BGT. This should fix the plu…
Browse files Browse the repository at this point in the history
…gin to work on 2024.1. Refs #16
  • Loading branch information
ricemery committed May 12, 2024
1 parent 301eda2 commit b0253d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ class FileAction : AnAction() {
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
return ActionUpdateThread.BGT
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ class ModuleAction : AnAction() {
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
return ActionUpdateThread.BGT
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.chainstaysoftware.testing

import com.intellij.ide.highlighter.JavaFileType
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDataKeys
Expand Down Expand Up @@ -61,4 +62,8 @@ class ProjectAction : AnAction() {
.filter { virtualFile -> instance.isInTestSourceContent(virtualFile) }
.size
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.BGT
}
}
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>com.chainstaysoftware.assertions2assertj</id>
<name>Assertions2Assertj</name>
<version>1.0.10</version>
<version>1.0.11</version>

<description><![CDATA[
<h2>Assertions2Assert2</h2>
Expand Down

0 comments on commit b0253d2

Please sign in to comment.