Skip to content

Commit

Permalink
enable slow operations in EDT errors when testing the sandboxed ide, …
Browse files Browse the repository at this point in the history
…useful for #121
  • Loading branch information
jonathanlermitage committed Apr 15, 2023
1 parent 24a8aff commit 6a596dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,22 @@ tasks {
}
runIde {
maxHeapSize = "1g" // https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html

if (pluginLanguage.isNotBlank()) {
jvmArgs("-Duser.language=$pluginLanguage")
}
if (pluginCountry.isNotBlank()) {
jvmArgs("-Duser.country=$pluginCountry")
}
jvmArgs("-Dextra-icons.enable.chinese.ui=" + System.getProperty("extra-icons.enable.chinese.ui", "false"))
if (System.getProperty("extra-icons.enable.chinese.ui", "false") == "true") {
jvmArgs("-Dextra-icons.enable.chinese.ui=true")
}

// force detection of slow operations in EDT when testing (SlowOperations.assertSlowOperationsAreAllowed)
jvmArgs("-Dide.slow.operations.assertion=true")

autoReloadPlugins.set(false)

// If any warning or error with missing --add-opens, wait for the next gradle-intellij-plugin's update that should sync
// with https://raw.githubusercontent.com/JetBrains/intellij-community/master/plugins/devkit/devkit-core/src/run/OpenedPackages.txt
// or do it manually
Expand Down

0 comments on commit 6a596dd

Please sign in to comment.