Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Import type for word under cursor / quick fix? #60

@lougreenwood

Description

@lougreenwood

VSCode has a neat feature which allows importing the specific type for the thing under the cursor via quick fix:

Screenshot 2023-02-02 at 07 37 21

Whilst I notice that whilst this add-on can fix all imports in a file, it doesn't surface quick fixes for each individual missing import.

Is this possible? I wonder if maybe VSCode has some extra magic/private TS LSP APIs available to it which allow it to infer the import path for what looks like an undefined type.

Also, thanks for the amazing work on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions