-
-
Notifications
You must be signed in to change notification settings - Fork 87
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 from ng-mocks doesn't work (VS Code) #2198
Comments
Hi there. Actually it should, that's what I always do. Could you describe steps and specify IDE its version and related plugins? |
Hi @cyberbiont, could you verify that this version works correctly? ng-mocks.zip |
Sorry, false alarm. |
Ah. I see. It's good to know, because I saw time to time I can import and time to time cannot, and at least one import explains it. Also, feel free to comment if you have any feedback or concerns. |
v13.4.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems. |
Description of the bug
Cannot use auto-import in VS Code like with all other packages
Expected vs actual behavior
E.g. if I use MockBuilder somewhere in my code and it's not defined (typescript says 'cannot find name 'MockBuilder'.ts(2304)' I expect that pressing 'Quick fix' button will present me an option 'add import from "ng-mocks", that automatically adds
import { MockBuilder } from 'ng-mocks'
line.Tried it in several projects.
Usually this feature work perfectly for other packages, probably it's something related to the way the exports are done from 'ng-mocks'.
Listing all imports manually each time is kind of annoying.
The text was updated successfully, but these errors were encountered: