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'] } 

ultimate visual studio code / ts setup


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -