-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-import won't import default exports more than once. #44688
Comments
@KodyJKing I can’t reproduce this with any TS version. I’m on a Mac and don’t have a Windows VM handy at the moment. I can get one set up or get a colleague to try this, but I want to double check a couple things first if you’re willing:
Thanks! |
@andrewbranch I can't reproduce this anymore on the latest. I'm not sure if this is relevant anymore, but here's the error log from when I reproduce it using 4.4.0-dev.20210621:
|
Hm, I wish I could reproduce this. It was likely fixed by accident in #44713, but seeing what caused it could have been useful. At any rate, the assertion now has a specific message about what went wrong, so if it continues to crash in the same place, we should be able to consolidate reports of it. |
Bug Report
After auto-importing a default export once, I have to restart the language server to auto-import a default export again.
🔎 Search Terms
Typescript VSCode auto-import default exports not working
🕗 Version & Regression Information
I can reproduce this with 4.3.0-beta through 4.4.0-dev.20210621. It works normally for me with 4.2.4 and lower.
I tested this in two environments, Windows 7 with NodeJs v14.15.4 and Windows 10 with NodeJs v14.17.1. I was using VSCode v1.57.1 for both.
💻 Code
Here is a repository that demonstrates the issue.
The text was updated successfully, but these errors were encountered: