Can you please confirm that all other TSLS features are functioning correctly on your current setup? This includes formatting, autocomplete, and any other features.
There has been a reported issue with TextMate support in Visual Studio where certain colors may be missing. To check if this is affecting your system, could you try running the following commands from a VS Developer cmd prompt:
• devenv.exe /updateconfiguration
• devenv.exe /setup
Could you provide the directory where Visual Studio is installed?
Example: C:\Program Files[ (x86)]\Microsoft Visual Studio 15.0\Common7\IDE
Is there a tmLanguage folder present under the TypeScript installation path?
Example: C:\Program Files\Microsoft Visual Studio 15.0\Common\IDE\CommonExtensions\Microsoft\TypeScript\tmLanguage
Do you have any custom grammar files (.tmLanguage, .tmTheme) in your user profile directory?
Example: %userprofile%.vs\Extensions
To rule out any TM language caching issues:
- Close Visual Studio
- Navigate to the TextMateCache location:
%localappdata%\Microsoft\VisualStudio[15.0XXXXX]\TextMateCache
- Delete all the .cache files in this directory
- Reopen Visual Studio and see if the problem persists
If the above steps do not resolve the issue, please check if the TypeScript TextMate registry key is correctly set:
- Close Visual Studio
- Open regedit
- Select HKLM
- File > Load Hive …
- Open
%localappdata%\Microsoft\VisualStudio\15.0_xxx\privateregistry.bin
(you can name the hive VS)
- Navigate to:
Computer\HKEY_LOCAL_MACHINE\VS\Software\Microsoft\VisualStudio\15[XXXXX]_Config\TextMate\Repositories