Skip to content

Auto import not providing suggestions (typescript) #36203

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

Closed
ms747 opened this issue Jan 14, 2020 · 5 comments
Closed

Auto import not providing suggestions (typescript) #36203

ms747 opened this issue Jan 14, 2020 · 5 comments

Comments

@ms747
Copy link

ms747 commented Jan 14, 2020

Code Insiders also has the same issue.

  • VSCode Version:
    1.41.1
    26076a4de974ead31f97692a0d32f90d735645c0
    x64
  • OS Version:
    Linux Mint 19.2
    Steps to Reproduce:
  1. Write "testModule" (third party npm module) and press Ctrl + Space or Ctrl + . ( Previously it used to show options now I've to manually import it and shows no suggestions)

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

@ms747
Copy link
Author

ms747 commented Jan 14, 2020

For further explanation.
Alt Text

@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 15, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Jan 15, 2020

Are there any other files in your project that reference typeorm? Also, is it listed in the package.json?

@mjbvz mjbvz removed their assignment Jan 15, 2020
@ms747
Copy link
Author

ms747 commented Jan 15, 2020

  1. I have various files which reference typeorm to create models. ( Nestjs project )
  2. Typeorm is listed within my package.json

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jan 15, 2020

I think this is a duplicate of #36042.

A good way to test this is to see whether you can extend a class declared in an @types package.

@ms747
Copy link
Author

ms747 commented Jan 16, 2020

Typeorm in itself is a typescript library so there is no @types package for it.

alt text

Also, I have two models in the same folder yet typescript is unable to import external module properly for one of them. I get typescript errors but compiles perfectly.

@ms747 ms747 closed this as completed Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants