Skip to content

Quick fix menu: default to most common import #62667

@gkiely

Description

@gkiely

When a developer opens the "Quick fix" context menu to import a dependency. VSCode currently defaults to alphabetical order, with external dependencies shown first (as best I can tell).

Libraries with similar variable names will often get preference over the most commonly used import in a project. This request would ensure that the most commonly used import is shown first.

In this example the ./utils/store export useTheme is used throughout the project, the @mui/material export useTheme is not used, but is shown first.

Image Image

In this example the ~/utils/store export useStore is used throughout the project, the zustand export useStore is not used, but is shown first.

Image Image

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