TypeScript code completion not working well
I'm not sure when exactly this started happening to me, but it's confusing.
I'm working on a project in TypeScript and I realize that the code completion doesn't work well.
For example when defining a type for a variable the only suggested options are of types defined in the file or in referenced files, there's nothing from standard types, such as what's defined in lib.d.ts.
I have another project and there everything works as expected, but I can't understand what's the difference between them, and I can't find anything in the settings which has anything to do with it.
Any ideas?
Thanks!
Please sign in to leave a comment.
Hello!
please try invalidating caches (File/Invalidate caches, restart). If it doesn't help, I'd suggest creating a support ticket, providing the details (screenshots that show up the issue, may be code snippets, .idea folder)
oh wow, that was easier than I thought it will be.
thanks a lot!
the Invalidate caches thing did the trick.