File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/main/kotlin/org/elm/ide/test/run Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import com.intellij.execution.testframework.autotest.DelayedDocumentWatcher
55import com.intellij.openapi.components.*
66import com.intellij.openapi.fileEditor.FileEditorManager
77import com.intellij.openapi.project.Project
8- import com.intellij.openapi.util.Condition
98import com.intellij.openapi.vfs.VirtualFile
10- import com.intellij.util.Consumer
119import org.elm.lang.core.ElmFileType
10+ import java.util.function.Predicate
1211
1312@State(
1413 name = " ElmTestAutoTestManager" ,
@@ -20,11 +19,10 @@ class ElmTestAutoTestManager internal constructor(
2019) : AbstractAutoTestManager(project) {
2120
2221 override fun createWatcher (project : Project ) =
23- // This is the only constructor that is available both in Platform versions 2022.2.4 and master
2422 DelayedDocumentWatcher (project,
2523 myDelayMillis,
26- Consumer { value : Int -> restartAllAutoTests(value) } ,
27- Condition { it: VirtualFile -> it.fileType == ElmFileType && FileEditorManager .getInstance(project).isFileOpen(it) }
24+ this :: restartAllAutoTests,
25+ Predicate { it: VirtualFile -> it.fileType == ElmFileType && FileEditorManager .getInstance(project).isFileOpen(it) }
2826 )
2927}
3028
You can’t perform that action at this time.
0 commit comments