mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 16:05:14 +08:00
use scope_names_generator in completion api as well. hopefully the last __file__ related issue :)
This commit is contained in:
1 parent
ea72b46fe8
commit
23008d8a19
2 files changed
+13
-4
No files matched your search
@@ -230,7 +230,14 @@ class Script(object):
|
||||
continue
|
||||
names = s.get_defined_names(on_import_stmt=True)
|
||||
else:
|
||||
names = s.get_defined_names()
|
||||
try:
|
||||
sng = s.scope_names_generator
|
||||
except AttributeError:
|
||||
names = s.get_defined_names()
|
||||
else:
|
||||
names = []
|
||||
for _, new_names in sng():
|
||||
names += new_names
|
||||
|
||||
for c in names:
|
||||
completions.append((c, s))
|
||||
|
||||
Reference in new issue
Block a user