Skip to content

Commit 1848a95

Browse files
authored
Update plugin compatibility for IntelliJ 2025.1 (#122)
1 parent ca7916a commit 1848a95

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44

55
## Unreleased
66

7+
## 1.18.0 - 2024-05-21
8+
- Updated plugin compatibility for IntelliJ 2025.1
9+
10+
## 1.17.0
11+
- Support for IntelliJ 2024.1
12+
713
## 1.12.0 - 2023-06-16
8-
- Changelog update - `v1.11.0` by @github-actions in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/107
9-
- 108 plugin doesnt properly support tests with trailing spaces by @eirikb in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/109
10-
- Bump verifyIdeVersions and platformVersion by @eirikb in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/110
14+
- Changelog update - `v1.11.0` by @github-actions in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/107
15+
- 108 plugin doesnt properly support tests with trailing spaces by @eirikb in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/109
16+
- Bump verifyIdeVersions and platformVersion by @eirikb in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/110
1117
- Version bump by @eirikb in https://github.com/eirikb/AvaJavaScriptTestRunnerRunConfigurationGenerator/pull/111
1218

1319
## 1.11.0 - 2023-04-13

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
33
pluginGroup=no.eirikb.avatest
44
pluginName=AvaJavaScriptTestRunnerRunConfigurationGenerator
5-
pluginVersion=1.17.0
5+
pluginVersion=1.18.0
66
pluginSinceBuild=233
7-
pluginUntilBuild=243.*
7+
pluginUntilBuild=251.*
88
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
99
# See https://jb.gg/intellij-platform-builds-list for available build versions
1010
pluginVerifierIdeVersions=2024.1

src/main/kotlin/no/eirikb/avatest/actions/AvaJavaScriptTestRunnerRunConfigurationGenerator.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import com.intellij.lang.javascript.psi.JSLiteralExpression
1616
import com.intellij.notification.Notification
1717
import com.intellij.notification.NotificationType
1818
import com.intellij.notification.Notifications
19+
import com.intellij.openapi.actionSystem.ActionUpdateThread
1920
import com.intellij.openapi.actionSystem.AnAction
2021
import com.intellij.openapi.actionSystem.AnActionEvent
2122
import com.intellij.openapi.actionSystem.CommonDataKeys
@@ -58,6 +59,9 @@ fun getRunArguments(relPath: String, testName: String?): String {
5859
}
5960

6061
class AvaJavaScriptTestRunnerRunConfigurationGenerator : AnAction() {
62+
override fun getActionUpdateThread(): ActionUpdateThread {
63+
return ActionUpdateThread.BGT
64+
}
6165
companion object {
6266
fun performAction(e: AnActionEvent, debug: Boolean = false, offset: Int? = null) {
6367
val project = e.project

src/main/kotlin/no/eirikb/avatest/markers/AvaRunContributor.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.intellij.icons.AllIcons.RunConfigurations.TestState
66
import com.intellij.lang.javascript.psi.JSCallExpression
77
import com.intellij.lang.javascript.psi.JSExpression
88
import com.intellij.lang.javascript.psi.JSLiteralExpression
9+
import com.intellij.openapi.actionSystem.ActionUpdateThread
910
import com.intellij.openapi.actionSystem.AnAction
1011
import com.intellij.openapi.actionSystem.AnActionEvent
1112
import com.intellij.psi.PsiElement
@@ -56,4 +57,8 @@ class AvaRunContributor : RunLineMarkerContributor() {
5657
}
5758

5859
abstract class RunAction(prefix: String, testName: String, icon: Icon) :
59-
AnAction("$prefix '$testName'", "$prefix '$testName'", icon)
60+
AnAction("$prefix '$testName'", "$prefix '$testName'", icon) {
61+
override fun getActionUpdateThread(): ActionUpdateThread {
62+
return ActionUpdateThread.BGT
63+
}
64+
}

0 commit comments

Comments
 (0)