Skip to content

Commit

Permalink
Merge branch 'master' into kantis/updating-runwriteaction
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel authored Jun 25, 2024
2 parents 2243be4 + d24c9ad commit 56d43ae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
19 changes: 6 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ val plugins = listOf(
)

val productName = System.getenv("PRODUCT_NAME") ?: "IC-241"
val jvmTarget = System.getenv("JVM_TARGET") ?: "11"
val jvmTargetVersion = System.getenv("JVM_TARGET") ?: "11"
val descriptor = plugins.first { it.sourceFolder == productName }

val jetbrainsToken: String by project
Expand Down Expand Up @@ -137,20 +137,13 @@ sourceSets {
}
}

tasks {

compileKotlin {
kotlinOptions {
jvmTarget = jvmTarget
}
}

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = jvmTarget
}
kotlin {
compilerOptions {
jvmToolchain(JavaLanguageVersion.of(jvmTargetVersion).asInt())
}
}

tasks {
buildPlugin {
archiveClassifier.set(descriptor.sdkVersion)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.kotest.plugin.intellij.toolwindow
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.DefaultActionGroup
Expand Down Expand Up @@ -53,6 +54,8 @@ class ExpandAllAction(private val tree: TestFileTree) : AnAction("Expand All", n
class FilterCallbacksAction(private val tree: TestFileTree) :
ToggleAction("Filter Vallbacks", null, AllIcons.Nodes.Controller) {

override fun getActionUpdateThread() = ActionUpdateThread.EDT

override fun isSelected(e: AnActionEvent): Boolean {
return TestExplorerState.showCallbacks
}
Expand All @@ -66,6 +69,8 @@ class FilterCallbacksAction(private val tree: TestFileTree) :
class FilterModulesAction(private val tree: TestFileTree) :
ToggleAction("Filter Modules", null, AllIcons.Nodes.ModuleGroup) {

override fun getActionUpdateThread() = ActionUpdateThread.EDT

override fun isSelected(e: AnActionEvent): Boolean {
return TestExplorerState.showModules
}
Expand All @@ -77,6 +82,7 @@ class FilterModulesAction(private val tree: TestFileTree) :
}

class FilterTagsAction(private val tree: TestFileTree) : ToggleAction("Filter Tags", null, AllIcons.Nodes.Tag) {
override fun getActionUpdateThread() = ActionUpdateThread.EDT

override fun isSelected(e: AnActionEvent): Boolean {
return TestExplorerState.showTags
Expand All @@ -89,6 +95,7 @@ class FilterTagsAction(private val tree: TestFileTree) : ToggleAction("Filter Ta
}

class FilterIncludesAction(private val tree: TestFileTree) : ToggleAction("Filter Includes", null, AllIcons.Nodes.Tag) {
override fun getActionUpdateThread() = ActionUpdateThread.EDT

override fun isSelected(e: AnActionEvent): Boolean {
return TestExplorerState.showIncludes
Expand All @@ -105,6 +112,7 @@ class NavigateToNodeAction : ToggleAction(
null,
AllIcons.General.AutoscrollToSource
) {
override fun getActionUpdateThread() = ActionUpdateThread.EDT

override fun isSelected(e: AnActionEvent): Boolean {
return TestExplorerState.autoscrollToSource
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<!-- correct values will be set by the build plugin -->
<version>1.0.0</version>
<idea-version since-build="211.6085.26"/>
<idea-version since-build="223.4884.69"/>

<depends>org.jetbrains.kotlin</depends>
<depends>com.intellij.modules.java</depends>
Expand Down

0 comments on commit 56d43ae

Please sign in to comment.