I am using Visual Studio 2015 with Typescript 1.5.4 and Resharper 9
This is the buggy scenario:
- I have about 180 typescript files
- I change single .ts file
- VS shows message "Generation of XXX.ts file complete. Remaining files still compiling"
- after that ALL my .ts files are compiled to .js
- 2 things were changed in those .js files: formatting is slightly different and reference for .js.map was removed
- When I build the whole project, then the .js files are generated again but with original formatting and with link to .js.map present
This is annoying because it generates too much noise in Git and it prevents me from debugging typescript files directly in browser. (because of that missing .js.map file)
The desired behaviour is of course that the only changed .ts file should be compiled on save. How to do it?
It seems that R# has nothing to do with this, because it continues to happen with R# disabled.
-------------UPDATE-------------
I've tried to update to Typescript version 1.6.
The PATH variable pointed to C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\ so I've updated that to point to 1.6
So when I now type tsc -v it says message TS6029: Version 1.6.2
But because of historical reasons (the project I work on is about 2 years old) I have to use version 1.4 inside VisualStudio. So in the .csproj is <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
After this change the compile on safe stopped working completely.
Now I have to rebuild the whole solution :(

git status | grep -v .jswhich filters out .js files.