Skip to content

Commit

Permalink
removed repeated options
Browse files Browse the repository at this point in the history
  • Loading branch information
an-dr committed Feb 25, 2020
1 parent 7d965a8 commit c70b51f
Showing 1 changed file with 16 additions and 31 deletions.
47 changes: 16 additions & 31 deletions templates/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
{
"label": "Build - Build project",
"type": "shell",
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py build",
"options": {
"env": {
Expand All @@ -28,7 +23,7 @@
"column": 3,
"severity": 4,
"message": 5
}
}
},
"group": {
"kind": "build",
Expand All @@ -49,7 +44,7 @@
"column": 3,
"severity": 4,
"message": 5
}
}
},
},
{
Expand All @@ -69,26 +64,21 @@
"column": 3,
"severity": 4,
"message": 5
}
}
},
},
{
"label": "Flash - Flash the device",
"type": "shell",
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py -p ${config:idf.port} -b ${config:idf.baudRate} flash",
"windows": {
"command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py flash -p ${config:idf.portWin} -b ${config:idf.baudRate}"
},
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"windows": {
"command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py flash -p ${config:idf.portWin} -b ${config:idf.baudRate}"
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -99,27 +89,22 @@
"column": 3,
"severity": 4,
"message": 5
}
}
},
},
{
"label": "Monitor: Start the monitor",
"type": "shell",
"command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py -p ${config:idf.port} -b ${config:idf.baudRate} monitor",
"windows": {
"command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py monitor -p ${config:idf.portWin} -b ${config:idf.baudRate}"
}
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"dependsOn": "Flash - Flash the device",
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"command": "${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py -p ${config:idf.port} -b ${config:idf.baudRate} monitor",
"windows": {
"command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py monitor -p ${config:idf.portWin} -b ${config:idf.baudRate}"
}
},
{
"label":"OpenOCD: Start openOCD",
Expand All @@ -130,15 +115,15 @@
"focus": false,
"panel":"new"
},
"command":"openocd -s ${command:espIdf.getOpenOcdScriptValue} ${command:espIdf.getOpenOcdConfigs}",
"windows": {
"command": "openocd.exe -s ${command:espIdf.getOpenOcdScriptValue} ${command:espIdf.getOpenOcdConfigs}"
},
"options": {
"env": {
"PATH": "${config:idf.customExtraPaths}",
}
},
"command":"openocd -s ${command:espIdf.getOpenOcdScriptValue} ${command:espIdf.getOpenOcdConfigs}",
"windows": {
"command": "openocd.exe -s ${command:espIdf.getOpenOcdScriptValue} ${command:espIdf.getOpenOcdConfigs}"
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -149,7 +134,7 @@
"column": 3,
"severity": 4,
"message": 5
}
}
},
},
{
Expand Down

0 comments on commit c70b51f

Please sign in to comment.