0xlau / LiteFlowX

✨LiteFlowX is an idea plugin to increase productivity when using the LiteFlow framework.
https://liteflow.cc/pages/liteflowx/
Apache License 2.0
23 stars 11 forks source link

请问一下有办法支持鼠标悬停时显示方法的文档注释吗 #7

Closed justhzd closed 1 month ago

justhzd commented 1 month ago

我想扩展实现类似java支持的那样,鼠标移动到引用对象上去,会在下方显示该对象的注释。 也就是在liteflow的chain里写编排节点时,鼠标移上去就能显示这些节点的注释而不用跳转过去看。 我查阅了关于idea插件的相关资料,以及问gpt,似乎是可以通过实现PsiReferenceProvider来做,没开发过插件所以不了解不知道行不行。 我照着教程写,在plugin.xml里添加了 <psi.referenceContributor language="LiteFlow" implementation="top.xystudio.plugin.idea.liteflowx.system.language.completion.LiteflowToJavaMethodContributor"/> 实现了对应的Contributor、PsiReferenceProvider、PsiReference。 但是没生效,启动之后LiteflowToJavaMethodContributor断点都没进去,不知道有没有懂的朋友帮忙指点一下。 万分感谢。

justhzd commented 1 month ago

解决了,使用lang.documentationProvider