docs(CsLineEnd): About Rider C# getReference().resolve()
This commit is contained in:
@@ -7,7 +7,7 @@ Thanks to JetBrains Licenses for Open Source.
|
||||
|
||||
## Notes 说明
|
||||
|
||||
Show doc comment at the Project view Tree, line End, json, other
|
||||
Show doc comment in the Project view Tree, line End, json, other
|
||||
|
||||
在文件树、行末、JSON 等地方显示注释.
|
||||
|
||||
@@ -57,7 +57,7 @@ Show doc comment at the Project view Tree, line End, json, other
|
||||
<h2>中文说明</h2>
|
||||
<ul>
|
||||
<li>在结构树显示 文件注释 或 项目说明 (README.md pom.xml 等,可设置)
|
||||
<li>在行末尾显示 引用对象的文档注释,欢迎反馈您想要支持的语言,目前 C# 有技术问题待官方解决
|
||||
<li>在行末尾显示 引用对象的文档注释,欢迎反馈您想要支持的语言,欢迎 C# 大神研究 CsLineEnd.java
|
||||
<li>目前支持 Java Kotlin JS/TS PHP Python Go Rust C SQL
|
||||
<li>输入 doc / docc 等生成 /** */
|
||||
<li>json 字段注释从 xxx.json.tsv 读取
|
||||
|
||||
@@ -33,9 +33,6 @@ intellij {
|
||||
'Pythonid:201.6668.121',
|
||||
'org.rust.lang:0.3.131.3366-201',
|
||||
'org.toml.lang:0.2.131.3366-201',
|
||||
'com.jetbrains.php:201.6668.153',
|
||||
// 'com.jetbrains.rust:232.9921.46',
|
||||
// 'Pythonid:212.5284.44',
|
||||
]
|
||||
if ('IC' == ideTypeStr || 'IU' == ideTypeStr) {
|
||||
plugins.add('java')
|
||||
@@ -47,7 +44,7 @@ intellij {
|
||||
plugins.add('JavaScript')
|
||||
plugins.add('com.intellij.database')
|
||||
plugins.add('org.jetbrains.plugins.go:201.6668.60.126')
|
||||
// plugins.add('org.jetbrains.plugins.go:212.5284.31')
|
||||
plugins.add('com.jetbrains.php:201.6668.153')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<description><![CDATA[
|
||||
|
||||
Show doc comment at the Project view Tree, line End, json, other
|
||||
Show doc comment in the Project view Tree, line End, json, other
|
||||
|
||||
在文件树、行末、JSON 等地方显示注释.
|
||||
|
||||
@@ -55,7 +55,7 @@ Show doc comment at the Project view Tree, line End, json, other
|
||||
<h2>中文说明</h2>
|
||||
<ul>
|
||||
<li>在结构树显示 文件注释 或 项目说明 (README.md pom.xml 等,可设置)
|
||||
<li>在行末尾显示 引用对象的文档注释,欢迎反馈您想要支持的语言,目前 C# 有技术问题待官方解决
|
||||
<li>在行末尾显示 引用对象的文档注释,欢迎反馈您想要支持的语言,欢迎 C# 大神研究 CsLineEnd.java
|
||||
<li>目前支持 Java Kotlin JS/TS PHP Python Go Rust C SQL
|
||||
<li>输入 doc / docc 等生成 /** */
|
||||
<li>json 字段注释从 xxx.json.tsv 读取
|
||||
|
||||
@@ -11,7 +11,14 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Doesn't work because I don't know how to get Reference for CSharp PsiElement
|
||||
* <br>https://intellij-support.jetbrains.com/hc/en-us/requests/4228491
|
||||
* <br>https://intellij-support.jetbrains.com/hc/en-us/community/posts/16807048482450-How-to-get-CSharp-References-comment
|
||||
* <br>Rider uses the ReSharper SDK (i.e., not the IntelliJ SDK) to parse C# syntax.
|
||||
* <br>Therefore, expect to write C#/.NET to support your feature.
|
||||
* <br>I think the inspections sample project could be helpful to get started with how things are working.
|
||||
* <br>Since I expect you also want to use some of your existing infrastructure, you must send data between C# and Kotlin code.
|
||||
* <br>For that, I recommend looking into the protocol sample project (check the README).
|
||||
* <br>https://github.com/JetBrains/resharper-rider-plugin/tree/master/samples/CodeInspections
|
||||
* <br>https://github.com/JetBrains/resharper-rider-plugin/tree/master/samples/RdProtocol
|
||||
*/
|
||||
public class CsLineEnd extends BaseLangDoc {
|
||||
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
// go package
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
// doc
|
||||
func main() {
|
||||
line(val)
|
||||
line(val1)
|
||||
log(val)
|
||||
log(val1)
|
||||
line(value)
|
||||
|
||||
t := &Class{}
|
||||
@@ -24,6 +26,13 @@ func main() {
|
||||
line(multiLine(block(t)))
|
||||
}
|
||||
|
||||
/**
|
||||
* log
|
||||
*/
|
||||
func log(s string) {
|
||||
fmt.Print(s)
|
||||
}
|
||||
|
||||
// const
|
||||
const val = ""
|
||||
|
||||
@@ -35,14 +44,14 @@ const (
|
||||
// var
|
||||
var value *Class
|
||||
|
||||
// First Class
|
||||
// Class First
|
||||
type Class struct {
|
||||
// a
|
||||
a *Class2
|
||||
b *Class2 // b
|
||||
}
|
||||
|
||||
// Class2
|
||||
// Class2 2
|
||||
type Class2 struct{}
|
||||
|
||||
// line
|
||||
|
||||
Reference in New Issue
Block a user