Skip to content

feature request: Insert qualified path (auto-imports) #13953

Open
@MaxCross2500

Description

@MaxCross2500

I can either:

  • Enable auto-imports
    • Have sugestions for non-imported items
    • Completion for these items insert a use statement on top of the file
  • Disable auto-imports
    • Not have sugestions for non-imported items at all.

Considering that rust analyzer already have quick-fix to Replace qualified path with use, I don't see a point of always inserting use statement on completion. I want third option:

  • Insert qualified path
    • Have sugestions for non-imported items
    • Completion for these items insert qualified path

(when i type fs, I should still see an option for std::fs, but pressing tab should insert std::fs, not use std::fs; on top of the file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionC-featureCategory: feature requestS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions