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
@@ -400,6 +401,15 @@ abstract class KotlinWithGradleConfigurator : KotlinProjectConfigurator {
400
401
return buildGradleFile.path
401
402
}
402
403
}
404
+
405
+ val externalProjectPath = ExternalSystemApiUtil .getExternalProjectPath(module)
406
+ if (externalProjectPath != null ) {
407
+ buildGradleFile = File (externalProjectPath + " /" + GradleConstants .DEFAULT_SCRIPT_NAME )
408
+ if (buildGradleFile.exists()) {
409
+ return buildGradleFile.path
410
+ }
411
+ }
412
+
403
413
return null
404
414
}
405
415
You can’t perform that action at this time.
0 commit comments