Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion doesn't use local uses. #4752

Closed
red75prime opened this issue Jun 5, 2020 · 1 comment
Closed

Completion doesn't use local uses. #4752

red75prime opened this issue Jun 5, 2020 · 1 comment

Comments

@red75prime
Copy link

uses in code blocks are not taken into account for completion.

mod foo {
    pub enum Foo {
        Variant1,
        Variant2,
    }
}

fn main() {
    use foo::Foo;
    // Completion for `Foo::` doesn't suggest anything relevant
}

Expected result for completion:
image

Actual result for completion:
image

@lnicola
Copy link
Member

lnicola commented Jun 5, 2020

Local imports are not supported, duplicate of #1165.

@lnicola lnicola closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants