feat(RustLangDoc): support Rust Method etc.

This commit is contained in:
林万程
2024-02-27 19:34:11 +08:00
parent 7e2b828434
commit a9f1088b8b
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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>-->