File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
goland/src/main/kotlin/cc/unitmesh/go/provider
pycharm/src/main/kotlin/cc/unitmesh/python/provider Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ class GoBuildSystemProvider : BuildSystemProvider() {
29
29
.toList()
30
30
}
31
31
32
-
33
32
fun getAllModules (project : Project ): Iterable <DevModuleModel > {
34
33
val result = mutableListOf<DevModuleModel >()
35
-
36
34
ModuleManager .getInstance(project).modules.forEach { module ->
37
35
ProgressManager .checkCanceled()
38
36
VgoModulesRegistry .getInstance(project).getModules(module).forEach { vgoModule ->
Original file line number Diff line number Diff line change @@ -25,10 +25,8 @@ import com.intellij.psi.util.PsiTreeUtil
25
25
import com.intellij.testIntegration.TestFinderHelper
26
26
27
27
class GoAutoTestService : AutoTestService () {
28
- override fun isApplicable (element : PsiElement ): Boolean = element.containingFile?.language == GoLanguage .INSTANCE
29
- override fun isApplicable (project : Project , file : VirtualFile ): Boolean {
30
- return file.extension == " go"
31
- }
28
+ override fun isApplicable (element : PsiElement ) = element.containingFile?.language == GoLanguage .INSTANCE
29
+ override fun isApplicable (project : Project , file : VirtualFile ) = file.extension == " go"
32
30
33
31
override fun runConfigurationClass (project : Project ): Class <out RunProfile > = GoTestRunConfiguration ::class .java
34
32
override fun lookupRelevantClass (project : Project , element : PsiElement ): List <ClassContext > = listOf ()
Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ class PythonBuildSystemProvider : BuildSystemProvider() {
12
12
override fun collect (project : Project ): DockerfileContext ? = null
13
13
14
14
override fun collectDependencies (project : Project , psiFile : PsiFile ): List <DevPackage > {
15
- if (psiFile.language.id != " Python" ) {
16
- return emptyList()
17
- }
15
+ if (psiFile.language.id != " Python" ) return emptyList()
18
16
19
17
val reqs: List <PyRequirement > = PyRequirementParser .fromFile(psiFile.virtualFile)
20
18
21
19
return reqs.map {
22
20
DevPackage (
23
- type = " Python " ,
21
+ type = " pypi " ,
24
22
name = it.name,
25
23
version = it.versionSpecs.firstOrNull()?.version ? : " "
26
24
)
You can’t perform that action at this time.
0 commit comments