Search code examples
intellij-ideaintellij-plugin

My intellij plugin for xml completion not work on Intellij Ultimate version


It works perfect on Intellij Community Edition version.

like following

enter image description here

on Intellij Ultimate version

enter image description here

There is no recommadation from my plugin. my code never run on Ultimate version.

Here is my plugin configuration

<extensions defaultExtensionNs="com.intellij">
<completion.contributor language="XML"
implementationClass="com.ccnode.codegenerator.view.MapperSqlCompletionContributor"/>

my plugin source code on https://github.com/gejun123456/MyBatisCodeHelper
How can i fix this probelm on Ultimate version?


Solution

  • It appears that another plug-in has already implemented and registered the language injection for this specific code fragment and is used instead of your plug-in.

    The first successful injection implementation will work, you can configure your languageInjector to either be the first or to be before another plug-in injector:

    <languageInjector implementation="com.InjectorImpl" order="first"/>
    
    <languageInjector implementation="com.InjectorImpl" order="before" id="other.injector.id"/>