File tree Expand file tree Collapse file tree 9 files changed +54
-4
lines changed
kotlin/cc/unitmesh/vue/provider
src/main/resources/META-INF Expand file tree Collapse file tree 9 files changed +54
-4
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ project(":") {
260
260
pluginModule(implementation(project(" :exts:ext-http-client" )))
261
261
pluginModule(implementation(project(" :exts:ext-terminal" )))
262
262
pluginModule(implementation(project(" :exts:ext-mermaid" )))
263
+ pluginModule(implementation(project(" :exts:ext-vue" )))
263
264
pluginModule(implementation(project(" :exts:ext-endpoints" )))
264
265
pluginModule(implementation(project(" :exts:ext-plantuml" )))
265
266
pluginModule(implementation(project(" :exts:devins-lang" )))
@@ -282,6 +283,7 @@ project(":") {
282
283
implementation(project(" :exts:ext-http-client" ))
283
284
implementation(project(" :exts:ext-terminal" ))
284
285
implementation(project(" :exts:ext-mermaid" ))
286
+ implementation(project(" :exts:ext-vue" ))
285
287
implementation(project(" :exts:ext-plantuml" ))
286
288
implementation(project(" :exts:ext-endpoints" ))
287
289
implementation(project(" :exts:devins-lang" ))
@@ -600,6 +602,17 @@ project(":exts:ext-mermaid") {
600
602
}
601
603
}
602
604
605
+ project(" :exts:ext-vue" ) {
606
+ dependencies {
607
+ intellijPlatform {
608
+ intellijIde(prop(" ideaVersion" ))
609
+ intellijPlugins(ideaPlugins + prop(" vuePlugin" ))
610
+ }
611
+
612
+ implementation(project(" :core" ))
613
+ }
614
+ }
615
+
603
616
project(" :exts:ext-plantuml" ) {
604
617
dependencies {
605
618
intellijPlatform {
Original file line number Diff line number Diff line change
1
+ package cc.unitmesh.vue.provider
2
+
3
+ import cc.unitmesh.devti.provider.RelatedClassesProvider
4
+ import com.intellij.psi.PsiElement
5
+ import com.intellij.psi.PsiFile
6
+ import org.jetbrains.vuejs.lang.html.VueLanguage
7
+
8
+ /* *
9
+ * AutoDev Modular for Vue
10
+ */
11
+ class VueRelatedClassProvider : RelatedClassesProvider {
12
+ override fun lookup (element : PsiElement ): MutableList <PsiElement > {
13
+ if (element.language !is VueLanguage ) return mutableListOf<PsiElement >()
14
+
15
+ return mutableListOf<PsiElement >()
16
+ }
17
+
18
+ override fun lookup (element : PsiFile ): MutableList <PsiElement > {
19
+ return mutableListOf<PsiElement >()
20
+ }
21
+ }
Original file line number Diff line number Diff line change
1
+ <idea-plugin package =" cc.unitmesh.vue" >
2
+ <!-- suppress PluginXmlValidity -->
3
+ <dependencies >
4
+ <plugin id =" org.jetbrains.plugins.vue" />
5
+ </dependencies >
6
+
7
+ <extensions defaultExtensionNs =" cc.unitmesh" >
8
+ <relatedClassProvider language =" Vue" implementationClass =" cc.unitmesh.vue.provider.VueRelatedClassProvider" />
9
+ </extensions >
10
+ </idea-plugin >
Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ rustPlugin=org.rust.lang:0.4.185.5086-222
19
19
# https://plugins.jetbrains.com/plugin/9568-go/versions
20
20
goPlugin =org.jetbrains.plugins.go:223.7571.182
21
21
endpointsPlugin =
22
- swaggerPlugin =com.intellij.swagger:223.7571.125
22
+ swaggerPlugin =com.intellij.swagger:223.7571.125
23
+ vuePlugin =org.jetbrains.plugins.vue:233.11799.176
Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ pythonPlugin=PythonCore:233.11799.196
19
19
# https://plugins.jetbrains.com/plugin/9568-go/versions
20
20
goPlugin =org.jetbrains.plugins.go:233.11799.196
21
21
endpointsPlugin =com.intellij.microservices.ui:233.11799.172
22
- swaggerPlugin =com.intellij.swagger:233.11799.188
22
+ swaggerPlugin =com.intellij.swagger:233.11799.188
23
+ vuePlugin =org.jetbrains.plugins.vue:233.11799.172
Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ goPlugin=org.jetbrains.plugins.go:241.14494.240
19
19
20
20
pythonPlugin =PythonCore:241.14494.240
21
21
endpointsPlugin =com.intellij.microservices.ui:241.14494.150
22
- swaggerPlugin =com.intellij.swagger:241.14494.150
22
+ swaggerPlugin =com.intellij.swagger:241.14494.150
23
+ vuePlugin =org.jetbrains.plugins.vue:241.14494.159
Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ goPlugin=org.jetbrains.plugins.go:243.21565.211
20
20
# https://plugins.jetbrains.com/plugin/7322-python-community-edition/versions
21
21
pythonPlugin =PythonCore:243.21565.211
22
22
endpointsPlugin =com.intellij.microservices.ui:243.21565.122
23
- swaggerPlugin =com.intellij.swagger:243.21565.122
23
+ swaggerPlugin =com.intellij.swagger:243.21565.122
24
+ vuePlugin =org.jetbrains.plugins.vue:243.21565.135
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ include(
25
25
" exts:ext-plantuml" ,
26
26
" exts:ext-mermaid" ,
27
27
" exts:ext-endpoints" ,
28
+ " exts:ext-vue" ,
28
29
29
30
// the Input Language support for AutoDev
30
31
" exts:devins-lang"
Original file line number Diff line number Diff line change 40
40
<module name =" cc.unitmesh.devti.language" />
41
41
<module name =" cc.unitmesh.httpclient" />
42
42
<module name =" cc.unitmesh.endpoints" />
43
+ <module name =" cc.unitmesh.vue" />
43
44
</content >
44
45
</idea-plugin >
You can’t perform that action at this time.
0 commit comments