Register XSD from Resource folder
已回答
I'm looking for help on how to store an xsd file in my plugins resource folder and register it for a particular xmlns url. This is easy to do through the settings, but it would be great if I could allow my plugin users to have this xsd installed for them to provide autocompletion for their xml file of this xsd type.
请先登录再写评论。
See com.intellij.javaee.StandardResourceEP for "static" mappings or com.intellij.xml.XmlSchemaProvider for programmatic solution
Thanks, Yann! I read through the extension point docs and got a little confused because I thought you meant I needed to create my own, but it was as simple as using the existing extension point for the static mapping in my plugin.xml
I have more schemas to load and may look into downloading them and installing them dynamically and I believe I would have to look into the other class you provided.