typescript - Run TSC Task on Save Automatically in Visual Studio Code 0.5.0 -
i migrating webstorm vscode, , 1 thing can't get, , seems basic. upon saving, want run typescript task. can't yet use tsconfig.json because can't exclude folders yet filesglob way done in atom (it chokes on node_modules folder).
i have ctrl+shift+b every time now, red underlines go away after every save. there must way?
after lots of fiddling, came this, works way expect.
tasks.json
{ "version": "0.1.0", "command": "tsc", "isshellcommand": true, "args": [ "-p", "." ], "showoutput": "silent", "iswatching": true, "problemmatcher": "$tsc-watch" }
tsconfig.json
{ "compileroptions": { "target": "es5", "module": "amd", "watch": true, "inlinesourcemap": true }, exclude: [ 'node_modules'] }
Comments
Post a Comment