Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Add submodules to completion list #1896

Merged
merged 30 commits into from
Feb 10, 2020

Conversation

MikhailArkhipov
Copy link

Fixes #1870

MikhailArkhipov added 30 commits September 30, 2019 12:03

public virtual IEnumerable<string> GetMemberNames() => GlobalScope.GetExportableVariableNames();
public virtual IMember GetMember(string name) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modifies all accesses, not just the completion for imports. Is this what you expect? Not sure if we had removed this behavior or modified at some point in the past or not... Vaguely remember something like this previously and having to be careful to present things in the right place.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if it is a legal member Python can find, it should be exposed. I looked into past history and found that handling of submodules was added for import statement completion specifically. This code is basically borrowed from there.

@MikhailArkhipov MikhailArkhipov merged commit c66e404 into microsoft:master Feb 10, 2020
@MikhailArkhipov MikhailArkhipov deleted the 1870 branch March 19, 2020 00:41
MikhailArkhipov pushed a commit that referenced this pull request Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sub-packages of pandas do not appear
2 participants