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
Mikhail Arkhipov (MikhailArkhipov) merged 30 commits into
microsoft:masterfrom
MikhailArkhipov:1870
Feb 10, 2020
Merged

Mikhail Arkhipov (MikhailArkhipov) merged 30 commits into
microsoft:masterfrom
MikhailArkhipov:1870

Conversation

@MikhailArkhipov

Copy link
Copy Markdown

Fixes #1870

MikhailArkhipov added 30 commits September 30, 2019 12:03
public virtual IMember GetMember(string name) => GlobalScope.Variables[name]?.Value;

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

Copy link
Copy Markdown
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
Copy Markdown
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.

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