File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed
kotlin/cc/unitmesh/cpp/context
rust/src/main/kotlin/cc/unitmesh/rust/provider Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ val clionVersion = prop("clionVersion")
64
64
val clionPlugins = listOf (
65
65
" com.intellij.cidr.base" ,
66
66
" com.intellij.cidr.lang" ,
67
+ // "com.jetbrains:clion:233.13135.93",
67
68
" com.intellij.clion" ,
68
69
" org.rust.lang:0.4.186.5143-223" ,
69
70
" org.toml.lang"
Original file line number Diff line number Diff line change
1
+ package cc.unitmesh.cpp.context
2
+
3
+ import cc.unitmesh.devti.context.ClassContext
4
+ import cc.unitmesh.devti.context.builder.ClassContextBuilder
5
+ import com.intellij.psi.PsiElement
6
+ import com.jetbrains.cidr.execution.debugger.evaluation.renderers.CxxNameParser
7
+
8
+ class CppClassContextBuilder : ClassContextBuilder {
9
+ override fun getClassContext (psiElement : PsiElement , gatherUsages : Boolean ): ClassContext ? {
10
+ if (psiElement !is CxxNameParser ) {
11
+ return null
12
+ }
13
+
14
+ return null
15
+ }
16
+ }
Original file line number Diff line number Diff line change 2
2
<!-- suppress PluginXmlValidity -->
3
3
<dependencies >
4
4
<plugin id =" com.intellij.modules.clion" />
5
+ <plugin id =" com.intellij.modules.cidr.lang" />
6
+ <plugin id =" com.intellij.modules.cidr.debugger" />
5
7
</dependencies >
6
8
7
9
<extensions defaultExtensionNs =" cc.unitmesh" >
10
+ <classContextBuilder language =" C++"
11
+ implementationClass =" cc.unitmesh.cpp.context.CppClassContextBuilder" />
12
+
8
13
<chatContextProvider implementation =" cc.unitmesh.cpp.provider.CLionWorkspaceContextProvider" />
9
14
</extensions >
10
15
</idea-plugin >
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ import org.rust.lang.doc.psi.RsDocComment
17
17
import org.rust.lang.doc.psi.ext.containingDoc
18
18
19
19
class RustLivingDocumentation : LivingDocumentation {
20
- override val forbiddenRules: List <String >
21
- get() = listOf ()
20
+ override val forbiddenRules: List <String > = listOf ()
22
21
23
22
override fun startEndString (type : LivingDocumentationType ): Pair <String , String > {
24
23
return Pair (" ///" , " ///" )
You can’t perform that action at this time.
0 commit comments