Recently, I encountered an issue while using Visual Studio Code with TypeScript. Even though TypeScript is installed globally, it is not showing up in the list of file languages for syntax highlighting. Despite trying various troubleshooting methods such as reinstallation and disabling extensions, the problem persists.
Currently, the only extension enabled is Prettier. However, without being able to select TypeScript as a language, the syntax highlighting is either nonexistent or incorrect, causing some parts to be highlighted in red instead.
Example of no syntax highlighting https://i.sstatic.net/6Np0A.png
When Javascript is selected, TypeScript syntax appears highlighted in red