File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/kotlin/com/vk/modulite/services Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,14 @@ class ModuliteIndex(private var project: Project) {
8585
8686 fun getModulite (name : String , composerPackageName : SymbolName ): Modulite ? {
8787 val allScope = GlobalSearchScope .allScope(project)
88- val modulites = FileBasedIndex .getInstance()
88+ val modulitesFromIndex = FileBasedIndex .getInstance()
8989 .getValues(ModuliteFilesIndex .KEY , name, allScope)
90+ modulitesFromIndex.forEach(::modulitePostProcess)
91+
92+ val modulites = modulitesFromIndex
9093 .filter { it.containingPackage?.symbolName() == composerPackageName }
94+
9195 return modulites.firstOrNull()
92- .also { modulitePostProcess(it) }
9396 }
9497
9598 private fun modulitePostProcess (it : Modulite ? ) {
You can’t perform that action at this time.
0 commit comments