|
@@ -3,26 +3,32 @@
|
|
|
// for the documentation about the tasks.json format
|
|
|
"version": "2.0.0",
|
|
|
"presentation": {
|
|
|
+ // Dont show the "Terminal will be reused by tasks, press any key to close it" message
|
|
|
"showReuseMessage": false,
|
|
|
- "reveal": "silent",
|
|
|
+ // Dont echo executed command in the terminal
|
|
|
"echo" : false
|
|
|
},
|
|
|
"tasks": [
|
|
|
{
|
|
|
"label": "control shift B",
|
|
|
"type": "shell",
|
|
|
- "command": "echo ${fileBasenameNoExtension}",
|
|
|
"dependsOn": ["default run executable"],
|
|
|
"group": {"kind": "build","isDefault": true}
|
|
|
},
|
|
|
{
|
|
|
- "label": "default compile",
|
|
|
+ "label": "overwritten",
|
|
|
"type": "shell",
|
|
|
- //"command": "g++ ${fileBasename} -L ${env:ow}/lib/ -I ${env:ow}/include/ -o ${fileBasenameNoExtension}/${fileBasenameNoExtension}.exe",
|
|
|
- "command": "$(make clean f=${fileBasenameNoExtension}.exe) -and $(make ${fileBasenameNoExtension}.exe)",
|
|
|
+ // delete current executable so it can be overwritten with new one
|
|
|
+ "command": "make clean f=${fileBasenameNoExtension}.exe",
|
|
|
"dependsOn": ["default directory"]
|
|
|
},
|
|
|
{
|
|
|
+ "label": "default compile",
|
|
|
+ "type": "shell",
|
|
|
+ "command": "make ${fileBasenameNoExtension}.exe",
|
|
|
+ "dependsOn": ["overwritten"]
|
|
|
+ },
|
|
|
+ {
|
|
|
"label": "default run executable",
|
|
|
"type": "shell",
|
|
|
"command": "${fileBasenameNoExtension}/./${fileBasenameNoExtension}.exe",
|
|
@@ -30,8 +36,16 @@
|
|
|
},
|
|
|
{
|
|
|
"label": "default directory",
|
|
|
- "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension})",
|
|
|
- "type": "shell"
|
|
|
+ "windows" : {
|
|
|
+ "command": "$(test-path ${fileBasenameNoExtension}) -or $(mkdir ${fileBasenameNoExtension}) >$null"
|
|
|
+ },
|
|
|
+ "type": "shell",
|
|
|
+ "presentation" : {
|
|
|
+ // Dont bring the terminal panel to the front view
|
|
|
+ "reveal": "never",
|
|
|
+ // clears terminal as first step, only do this once
|
|
|
+ "clear" :true
|
|
|
+ }
|
|
|
}
|
|
|
]
|
|
|
}
|