fixed tests
authorEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Mon, 25 Nov 2013 14:37:39 +0000 (18:37 +0400)
committerEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Mon, 25 Nov 2013 14:37:39 +0000 (18:37 +0400)
python/src/com/jetbrains/python/codeInsight/completion/PyDocstringCompletionContributor.java
python/testData/completion/epydocParamTag.py

index 2531da32560c06a50f800febb1ca10700878f98c..272adfa683c56a8d6af7969415cbbcd6b3bcf66b 100644 (file)
@@ -16,6 +16,7 @@
 package com.jetbrains.python.codeInsight.completion;
 
 import com.intellij.codeInsight.completion.*;
+import com.intellij.codeInsight.lookup.AutoCompletionPolicy;
 import com.intellij.codeInsight.lookup.LookupElementBuilder;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.module.ModuleUtilCore;
@@ -64,12 +65,12 @@ public class PyDocstringCompletionContributor extends CompletionContributor {
         result = result.withPrefixMatcher(getPrefix(parameters.getOffset(), file));
         final Collection<String> identifiers = PyRefactoringUtil.collectUsedNames(docStringOwner);
         for (String identifier : identifiers)
-          result.addElement(LookupElementBuilder.create(identifier));
+          result.addElement(LookupElementBuilder.create(identifier).withAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE));
 
 
         final Collection<String> fileIdentifiers = PyRefactoringUtil.collectUsedNames(parameters.getOriginalFile());
         for (String identifier : fileIdentifiers)
-          result.addElement(LookupElementBuilder.create(identifier));
+          result.addElement(LookupElementBuilder.create(identifier).withAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE));
       }
     }
   }
index 6323111c854062956e637bd8854b753d6b528070..e74df8de168f1bcd7b7946175b32d4ac3dd89cb3 100644 (file)
@@ -1,2 +1,2 @@
 def foo(bar):
-    """ @param <caret> """
\ No newline at end of file
+    """ @param b<caret> """
\ No newline at end of file