File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
idea/src/org/jetbrains/kotlin/idea/configuration Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package org.jetbrains.kotlin.idea.configuration
18
18
19
19
import com.intellij.codeInsight.CodeInsightUtilCore
20
20
import com.intellij.ide.actions.OpenFileAction
21
+ import com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil
21
22
import com.intellij.openapi.module.Module
22
23
import com.intellij.openapi.module.ModuleUtil
23
24
import com.intellij.openapi.project.Project
@@ -404,6 +405,15 @@ abstract class KotlinWithGradleConfigurator : KotlinProjectConfigurator {
404
405
return buildGradleFile.path
405
406
}
406
407
}
408
+
409
+ val externalProjectPath = ExternalSystemApiUtil .getExternalProjectPath(module)
410
+ if (externalProjectPath != null ) {
411
+ buildGradleFile = File (externalProjectPath + " /" + GradleConstants .DEFAULT_SCRIPT_NAME )
412
+ if (buildGradleFile.exists()) {
413
+ return buildGradleFile.path
414
+ }
415
+ }
416
+
407
417
return null
408
418
}
409
419
You can’t perform that action at this time.
0 commit comments