Skip to content

Auto-imports from within jsx don't work #44657

@selrond

Description

@selrond

Auto imports inside jsx stopped working on the latest stable release - worked before.
When I try to use auto import, it show correct info about the identifier, but no way to auto import it:

screencap-Code--2021-06-11--11-00-10

However, whn I use auto import outside of jsx, it works (shows correct path and auto-imports on confirm):

screencap-Code--2021-06-11--11-01-32

Does this issue occur when all extensions are disabled?: Yes/No

Yes

  • VS Code Version: 1.57.0
  • OS Version: Darwin x64 19.6.0 (Catalina 10.15.7)

Steps to Reproduce:

  1. Open any react component
  2. Try to use auto import inside jsx

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions