@@ -29,16 +29,13 @@ import com.intellij.openapi.editor.Editor
29
29
import com.intellij.openapi.progress.ProgressIndicator
30
30
import com.intellij.openapi.project.DumbService
31
31
import com.intellij.openapi.project.Project
32
- import com.intellij.openapi.roots.PlatformModifiableModelsProvider
33
- import com.intellij.openapi.roots.ui.configuration.DefaultModulesProvider
34
32
import com.intellij.openapi.startup.StartupManager
35
33
import com.intellij.openapi.vfs.VirtualFile
36
34
import com.intellij.psi.PsiFile
37
35
import com.intellij.psi.search.GlobalSearchScope
38
36
import com.intellij.util.indexing.FileBasedIndex
39
37
import com.intellij.util.ui.update.MergingUpdateQueue
40
38
import com.intellij.util.ui.update.Update
41
- import org.jetbrains.kotlin.utils.ifEmpty
42
39
import java.util.*
43
40
44
41
// Based on com.intellij.framework.detection.impl.FrameworkDetectionManager
@@ -124,6 +121,7 @@ class FacetConfigurator(
124
121
if (! shouldDetect) return
125
122
shouldDetect = false
126
123
124
+ /*
127
125
val index = FileBasedIndex.getInstance()
128
126
val newDescriptions = ArrayList<DetectedFrameworkDescription>()
129
127
val oldDescriptions = ArrayList<DetectedFrameworkDescription>()
@@ -139,10 +137,17 @@ class FacetConfigurator(
139
137
if (FrameworkDetectionUtil.removeDisabled(newDescriptions, oldDescriptions).isEmpty()) return
140
138
141
139
val validFrameworks = getValidDetectedFrameworks().ifEmpty { return }
140
+ for (validFramework in validFrameworks) {
141
+ if (validFramework is FacetBasedDetectedFrameworkDescription<*, *>) {
142
+ val module = ModuleManager.getInstance(myProject).findModuleByName(validFramework.get)
143
+ }
144
+
145
+ }
142
146
FrameworkDetectionUtil.setupFrameworks(frameworks, PlatformModifiableModelsProvider(), DefaultModulesProvider(myProject))
143
147
for (framework in validFrameworks) {
144
148
myDetectedFrameworksData!!.putExistentFrameworkFiles(id, framework.relatedFiles)
145
149
}
150
+ */
146
151
}
147
152
148
153
private fun runDetector (detectorId : Int? ,
0 commit comments