I'm opening an existing project and not getting some syntax highlighting that I'm expecting. I've checked my file type associations; it looks like the files are recognised as .ts/.tsx correctly, but IDEA just doesn't seem to pick up definitions from other code in the project. I think the project started as non-typescript and ts was added later, so I'm pretty sure some configuration is messed up. When I test a new TS project generated by Vite, the highlighting works as expected.
Image 1: the "useAuth" definition isn't being picked up, and it's not highlighted.
Image 2: Same project, jsx file instead of tsx. Definition is applied
Image 3: New test project, .tsx file. Definition is applied.
The imported useAuth is a .tsx file
IntelliJ IDEA 2021.3.3