1
0
forked from VimPlug/jedi

Temporarily disable on import completion. Not sure if we're going to do it with the normal parser.

This commit is contained in:
Dave Halter
2014-11-19 13:24:45 +01:00
parent c71646a9a0
commit bb9d6b4832
4 changed files with 12 additions and 5 deletions

View File

@@ -226,9 +226,12 @@ class Script(object):
current_line = self._user_context.get_position_line()
if not current_line.endswith('import import'):
continue
"""
a = s.import_stmt.alias
if a and a.start_pos <= self._pos <= a.end_pos:
continue
"""
# TODO what to do with this?
names = s.get_defined_names(on_import_stmt=True)
else:
names = []

View File

@@ -25,7 +25,7 @@ def get_on_import_stmt(evaluator, user_context, user_stmt, is_like_search=False)
Resolve the user statement, if it is an import. Only resolve the
parts until the user position.
"""
name = user_stmt.leaf_for_position(user_context.position)
name = user_stmt.name_for_position(user_context.position)
if name is None:
raise NotImplementedError