Skip to content

Commit

Permalink
Merge pull request #516 from alex999990009/alex99999/fixes
Browse files Browse the repository at this point in the history
Mini fixes Arend Actions and typechecking Test.ard
  • Loading branch information
sxhya authored Jun 17, 2024
2 parents c3281a7 + ef0e3ea commit 5353fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/arend/actions/ArendActions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package org.arend.actions
import com.intellij.openapi.actionSystem.DefaultActionGroup
import org.arend.ArendIcons.AREND

class ArendActions : DefaultActionGroup("Arend Actions", "Show Arend Actions", AREND) {
class ArendActions : DefaultActionGroup("Arend", "Show Arend Actions", AREND) {
override fun isPopup(): Boolean = true
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import org.arend.typechecking.error.TypecheckingErrorReporter
import org.arend.typechecking.execution.TypecheckRunConfigurationProducer.Companion.TEST_PREFIX
import org.arend.typechecking.order.Ordering
import org.arend.typechecking.order.listener.CollectingOrderingListener
import org.arend.util.FileUtils.EXTENSION
import org.arend.util.afterTypechecking
import org.jetbrains.ide.PooledThreadExecutor
import java.io.OutputStream
Expand Down Expand Up @@ -122,7 +123,7 @@ class TypeCheckProcessHandler(
val modulePaths = if (modulePath == null) library.loadedModules else listOf(modulePath)
val modules = modulePaths.flatMap {
var newModulePath = it
val isTest = newModulePath.firstName == TEST_PREFIX ||
val isTest = (newModulePath.firstName == TEST_PREFIX && newModulePath.toList().getOrNull(1) != EXTENSION.drop(1)) ||
(newModulePath.size() == 1 && newModulePath.firstName == library.config.testsDirFile?.name)
val isSource = newModulePath.firstName == library.config.sourcesDirFile?.name
if (isTest || isSource) {
Expand Down

0 comments on commit 5353fa0

Please sign in to comment.