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:
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user