Closed amayevsky closed 2 years ago
@amayevsky I don't really like parsing entire files just for autocomplete. Maybe revert the last commits that do it?
@noamraph I updated it so that the file parsing functionality is behind a setting which is off by default. That way the capability is still there and can maybe be added to the preferences screen later.
This is to improve autocompletion because currently there are cases where "from module.submodule" is able to autocomplete "submodule", but "from module import submodule" can't.
There are also cases where the autocomplete options for modules get overwritten if the __init__ at the level of that module has imports and has been executed. This behavior is updated to provide autocomplete options from the union of the submodules and __init__ contents.