Currently using Visual Studio 2015 Update 3 with TypeScript 2 for VS installed. I have a basic ASP.NET Core MVC web application with a few simple TypeScript files. The project contains a tsconfig.json file in the root folder with "compileOnSave": true.
I have multiple versions of TypeScript (1.0, 1.7, 1.8, and 2.0) installed on my PC at C:\Program Files (x86)\Microsoft SDKs\TypeScript
When I save a TypeScript file, it is correctly compiled into a JavaScript file with the same name. Even if I delete the generated JavaScript files and build the project again, the TypeScript files are compiled successfully.
If I change the directory name from "C:\Program Files (x86)\Microsoft SDKs\TypeScript" to "C:\Program Files (x86)\Microsoft SDKs\TypeScript.bak", making the TypeScript compilers inaccessible, I receive an error during project build as expected. However, saving a TypeScript file still triggers auto-compilation even without the compiler available.
Given these conditions, how does Visual Studio locate the TypeScript compiler to enable compile on save functionality?