File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
java/src/main/kotlin/cc/unitmesh/idea/service
src/main/kotlin/cc/unitmesh/devti/provider Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ class JavaAutoTestService : AutoTestService() {
29
29
override fun runConfigurationClass (project : Project ): Class <out RunProfile > = GradleRunConfiguration ::class .java
30
30
override fun isApplicable (element : PsiElement ): Boolean = element.language is JavaLanguage
31
31
32
- override fun createConfiguration (project : Project , path : String ): RunConfiguration ? {
33
- val file = LocalFileSystem .getInstance().refreshAndFindFileByPath(path)
34
- return file?.let { createConfiguration(project, it) }
35
- }
36
-
37
32
override fun createConfiguration (project : Project , virtualFile : VirtualFile ): RunConfiguration ? {
38
33
val name = virtualFile.name
39
34
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import com.intellij.openapi.diagnostic.Logger
12
12
import com.intellij.openapi.diagnostic.logger
13
13
import com.intellij.openapi.project.Project
14
14
import com.intellij.openapi.vfs.VirtualFile
15
- import org.jetbrains.concurrency.resolvedPromise
16
15
17
16
interface RunService {
18
17
private val logger: Logger get() = logger<RunService >()
@@ -27,8 +26,6 @@ interface RunService {
27
26
28
27
fun createConfiguration (project : Project , virtualFile : VirtualFile ): RunConfiguration ? = null
29
28
30
- fun createConfiguration (project : Project , path : String ): RunConfiguration ? = null
31
-
32
29
fun runFile (project : Project , virtualFile : VirtualFile ): String? {
33
30
val runManager = RunManager .getInstance(project)
34
31
var testConfig = runManager.allConfigurationsList.firstOrNull {
You can’t perform that action at this time.
0 commit comments