Skip to content

"crate", "crate $0;" snippet after of extern #19761

Open
@A4-Tacks

Description

@A4-Tacks

Context add in_extern, like extern crate alloc;

Add for crates/ide-completion/src/completions/expr.rs:

if in_extern {
    add_keyword("crate", "crate $0;");
}

But I'm not sure how to add in_extern to the PathExprCtx

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