Skip to content

"Import qualified name" should work on the first segment of a path #18049

@lnicola

Description

@lnicola

Given something like st<I>d::collections::HashMap, I think we should offer to import std::collections::HashMap. Except for enums, where we should import the enum, and not a single variant.

We shouldn't change the behavior of the assist when triggered on the other segments. Specifically, std::coll<|>ections::HashMap will still produce use std::collections.

CC @davidbarsky

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions