File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
exts/ext-vue/src/233/main/kotlin/cc/unitmesh/vue/provider/bridge Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package cc.unitmesh.vue.provider.bridge
2
2
3
3
import cc.unitmesh.devti.bridge.provider.UiComponentProvider
4
4
import cc.unitmesh.devti.bridge.tools.UiComponent
5
+ import com.intellij.ide.highlighter.XmlFileType
6
+ import com.intellij.javascript.web.html.WebFrameworkHtmlFileType
5
7
import com.intellij.lang.javascript.psi.JSExecutionScope
6
8
import com.intellij.openapi.project.Project
7
9
import com.intellij.psi.PsiManager
@@ -11,14 +13,13 @@ import com.intellij.psi.search.ProjectScope
11
13
import com.intellij.psi.xml.XmlFile
12
14
import org.jetbrains.vuejs.index.findModule
13
15
import org.jetbrains.vuejs.index.findScriptTag
14
- import org.jetbrains.vuejs.lang.html.VueFileType
15
16
16
17
class VueUIComponentProvider : UiComponentProvider () {
17
18
override fun collect (project : Project ): List <UiComponent > {
18
19
val searchScope: GlobalSearchScope = ProjectScope .getContentScope(project)
19
20
val psiManager = PsiManager .getInstance(project)
20
21
21
- val virtualFiles = FileTypeIndex .getFiles(VueFileType , searchScope)
22
+ val virtualFiles = FileTypeIndex .getFiles(XmlFileType . INSTANCE , searchScope)
22
23
23
24
val components = mutableListOf<UiComponent >()
24
25
virtualFiles.forEach { file ->
You can’t perform that action at this time.
0 commit comments