feat(RustLangDoc): support Rust Method etc.
This commit is contained in:
@@ -5,6 +5,7 @@ import io.github.linwancen.plugin.show.bean.LineInfo;
|
||||
import io.github.linwancen.plugin.show.lang.base.BaseLangDoc;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.rust.lang.RsLanguage;
|
||||
import org.rust.lang.core.psi.RsMethodCall;
|
||||
import org.rust.lang.core.psi.RsPath;
|
||||
|
||||
import java.util.List;
|
||||
@@ -17,7 +18,7 @@ public class RustLangDoc extends BaseLangDoc {
|
||||
|
||||
@Override
|
||||
public @NotNull List<Class<? extends PsiElement>> getRefClass() {
|
||||
return List.of(RsPath.class);
|
||||
return List.of(RsPath.class, RsMethodCall.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -131,7 +131,9 @@ Show doc comment in the Project view Tree, line End, json, other
|
||||
<depends optional="true" config-file="rust_old.xml">org.rust.lang</depends>
|
||||
<!--suppress PluginXmlValidity -->
|
||||
<depends optional="true" config-file="rust.xml">com.jetbrains.rust</depends>
|
||||
<depends optional="true" config-file="c.xml">com.intellij.modules.c-capable</depends>
|
||||
<!--suppress PluginXmlValidity -->
|
||||
<depends optional="true" config-file="c.xml">com.intellij.modules.clion</depends>
|
||||
<!--suppress PluginXmlValidity -->
|
||||
<depends optional="true" config-file="swift.xml">com.intellij.modules.swift-capable</depends>
|
||||
<!--suppress PluginXmlValidity, MybatisMapperXmlInspection -->
|
||||
<!--<depends optional="true" config-file="cs.xml">com.intellij.modules.rider</depends>-->
|
||||
|
||||
Reference in New Issue
Block a user