You should try installing tsc as follows:
npm install -g typescript
And then change tasks.json to:
... "windows": { "command": "tsc.cmd" }, "args" : ["Myfilename.ts"] ...
And everything should work as expected, also try reading this:
https://code.visualstudio.com/Docs/tasks
Well,
I came up with my own solution for creating a modified version of tasks.json every time you run the configuration task (CTR), but I don’t know if this is really a good grade as VSCode is brand new. I have not found a better solution. If anyone knows how to change CTR correctly. Please let me know!
There is a file called taskSampleConfig.json that is parsed every time CTR is executed, and this file is inside the VSCode folder, so you can change it to:
... "windows": { "command": "tsc.cmd" }, ...
jrabello
source share