1
0
forked from VimPlug/jedi

Improvments to on import completion.

This commit is contained in:
Dave Halter
2014-11-26 02:13:24 +01:00
parent 149b4d8ad5
commit a940c31a86
3 changed files with 14 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ class Script(object):
importer = helpers.check_error_statements(
self._evaluator, module, self._pos
)
print(importer.completion_names(self._evaluator, True))
#print(importer.completion_names(self._evaluator, True))
return [(name, module) for name in importer.completion_names(self._evaluator, True)]
elif isinstance(user_stmt, pr.Import):
# TODO this paragraph is necessary, but not sure it works.
@@ -189,7 +189,10 @@ class Script(object):
if not path and not isinstance(user_stmt, pr.Import):
# add keywords
completions += ((k, b) for k in keywords.keyword_names(all=True))
#completions += ((k, b) for k in keywords.keyword_names(all=True))
pass
# TODO delete? We should search for valid parser
# transformations.
needs_dot = not dot and path