Maybe I found a workaround that seems to do the trick for me:
So, I have a solution with several projects, only one of which has TypeScript files.
I just unloaded the project, cleaned + rebuilt (some restart in Visual Studio at this stage can help + close all open files), then downloaded, cleaned and rebuilt again, and now CodeLens shows my links (again, close all open files).
Please note that until this error is fixed, you will have to do this every time you open VS.
Hope this helps!
EDIT: if you have only one project, then exclude the Scripts folder from it, clean, rebuild, close Visual Studio and open it again. You should now return the links. Just turn on the folder again.
Good luck
radu-matei
source share