May be I’m missing something on this one (or may be I’m too tired 😛 ). In Visual Studio 2012 in a Typescript project, when I rename a ts file, instead of rename the js file linked with that ts file, it creates a new one.
Ex :
Old situation : (file1.ts –> file1.js)
After renaming : (file1337.ts –> file.js) + file1337.js //file1337 isn’t include in project, I need to do it manually …
So is there a way to rename both the ts file and the js directly linked with this file at the same time without creating a new one and having to manually adding the new js file in the project?
Thanks
I’ve found that if you delete the associated .js file and any source map (that is, delete the files nested inside the .ts in Solution Explorer), then rename the.ts file, then recompile, the .js files are regenerated with the new name, and are automatically added to the project (as long as the .ts file already is).
I should add that I have WebEssentials installed – I don’t know how much of this behaviour is due to that, and how much is native to VS.