Add legacy completion contributor for Python language in Rider
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Sun, 20 Nov 2016 15:08:38 +0000 (16:08 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Tue, 22 Nov 2016 11:58:12 +0000 (12:58 +0100)
(cherry picked from commit a2eff8aa3b513068fb8d460932e16f7454d2316a)

python/pluginResources/META-INF/plugin.xml
python/pluginResources/META-INF/python-plugin-rider.xml [new file with mode: 0644]

index efe58d844c8067afd0a34f1a99cc0c005f7c1b4d..d5d7b2594cb9047cffa573b9320ac31e0323109d 100644 (file)
@@ -24,7 +24,7 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
 
   <depends optional="true" config-file="python-community-plugin-java.xml">com.intellij.modules.java</depends>
   <depends optional="true" config-file="python-plugin-minor-ide.xml">com.intellij.modules.clion</depends>
 
   <depends optional="true" config-file="python-community-plugin-java.xml">com.intellij.modules.java</depends>
   <depends optional="true" config-file="python-plugin-minor-ide.xml">com.intellij.modules.clion</depends>
-  <depends optional="true" config-file="python-plugin-minor-ide.xml">com.intellij.modules.rider</depends>
+  <depends optional="true" config-file="python-plugin-rider.xml">com.intellij.modules.rider</depends>
 
   <!-- Two different versions of this file exist: one is used when building from sources (when auxiliary
      plugins are loaded as separate plugins) and another is used for the real release build (when auxiliary
 
   <!-- Two different versions of this file exist: one is used when building from sources (when auxiliary
      plugins are loaded as separate plugins) and another is used for the real release build (when auxiliary
diff --git a/python/pluginResources/META-INF/python-plugin-rider.xml b/python/pluginResources/META-INF/python-plugin-rider.xml
new file mode 100644 (file)
index 0000000..a1d7c55
--- /dev/null
@@ -0,0 +1,8 @@
+<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude" url="https://confluence.jetbrains.com/display/PYH/">
+  <xi:include href="/META-INF/python-plugin-minor-ide.xml" xpointer="xpointer(/idea-plugin/*)"/>
+
+  <extensions defaultExtensionNs="com.intellij">
+    <completion.contributor language="Python" implementationClass="com.intellij.codeInsight.completion.LegacyCompletionContributor" id="legacy"
+                            order="last"/>
+  </extensions>
+</idea-plugin>