How to make the default quick document coexist with my custom document?
已回答
My plugin is for front-end personnel. Modern web frameworks can customize some XML tags. I customized a "Form" tag and provided a quick document, but the IDE is the "form" tag in standard HTML. Information, ignore the quick documentation I added, can this be resolved?
请先登录再写评论。
Please register your documentation provider with
order="before html"
in plugin.xml
@Yann Cebron
Seems still not working, in HTML files and Vue files
try order="first" and/or register it for language="HTML" as well
@Yann Cebron
None of the following:
Please remove duplicate registrations for same language. If it still doesn't work, debug com.intellij.lang.documentation.CompositeDocumentationProvider#getQuickNavigateInfo
Of course, I try only one of them at a time, without repeating the registration.
I tried [com.intellij.lang.documentation.CompositeDocumentationProvider], but there are private constructors, I cannot inherit or instantiate them. Honestly, I am a newbie in java, please tell me more information, thank you!
I meant to put breakpoint in method of CompositeDocumentionProvider and see which documentation providers are present and actually used
Hello, I put breakpoint debugging at com.intellij.lang.documentation.CompositeDocumentationProvider # getQuickNavigateInfo as you said, and found that my provider is not the first one. According to some clues, I modified my registration information:
Now my provider program is ranked first. The content displayed by [control + hover] can overwrite the default text, but for me, scroll bars appear and cannot be copied.
I went on debugging: "com.intellij.lang.documentation.CompositeDocumentationProvider # generateDoc" and found that only my custom tags would enter breakpoints, and standard html tags such as form, input, select, would not enter breakpoint It seems that I directly read a file, which has troubled me for a long time, and I haven't found out the problem. I hope you can help me, thank you!
Sorry, but I don't understand your question on how to help you. Could you share your plugin sources and provide some screenshots of the actual problem?
Sorry, I didn't describe my problem clearly.
Maybe you look at my other question, it may be useful
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007656660-Can-I-customize-XmlElementDescriptorProvider-or-override-the-default-HTML-document-