[gnome-builder/wip/chergert/multi-process: 30/58] jedi: use ide_completion_provider_context_in_comment_or_string()



commit d1f3becde7fe1035f35db26677aeccb8cac7e6d1
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 19 21:04:28 2015 -0700

    jedi: use ide_completion_provider_context_in_comment_or_string()
    
    Use our new helper to avoid completion inside of strings unless we have
    been specifically requested.

 plugins/jedi/jedi_plugin.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/jedi/jedi_plugin.py b/plugins/jedi/jedi_plugin.py
index db51a18..8e4896b 100644
--- a/plugins/jedi/jedi_plugin.py
+++ b/plugins/jedi/jedi_plugin.py
@@ -269,7 +269,7 @@ class JediCompletionProvider(Ide.Object,
             if not is_completable_char(ch):
                 return False
             buffer = iter.get_buffer()
-            if Ide.CompletionProvider.context_in_comment(context):
+            if Ide.CompletionProvider.context_in_comment_or_string(context):
                 return False
         return True
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]