Skip to content

Importing types via auto-complete sometimes doesn't import the type #2631

@LPGhatguy

Description

@LPGhatguy

Accepting a completion that imports a type or trait sometimes accepts the completion but does not add the import for the type to the top of the file.

For example, accepting this completion:

Image

...will sometimes not add the use std::collections::HashMap; to the top of the file. When this happens, it causes compilation to fail and I have to retry the completion or manually import the type.

Are there diagnostics available for this happening? What should I look for? My coworkers and friends using VS Code don't have this category of problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguage server issueIssues related to language servers communicating with this plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions