Skip to content

CodeFix import for items that exist globally #13378

Closed
@normalser

Description

@normalser

I'm not sure if this feature request is valid so just wanted to see what you think.

Let's say I have a react component called History.
As it happens there also exists global declare var History in lib.dom.d.ts

It would be nice that when using History in my module I could use CodeFix import action (Cmd+.) to be able to import my own component if there is no such local import. CodeFix bulb / shortcut keyboard is very discreet so there wouldn't be any worry of noise.

And I'm not sure how many other such cases could exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions