Use custom Pre-Debug task only for multi-env project

This commit is contained in:
Ivan Kravets
2020-11-12 15:35:19 +02:00
parent 4a12d1954e
commit 3dcc189740

View File

@@ -26,7 +26,11 @@
% end
"preLaunchTask": {
"type": "PlatformIO",
% if len(config.envs()) > 1:
"task": "Pre-Debug ({{ env_name }})"
% else:
"task": "Pre-Debug"
% end
},
"internalConsoleOptions": "openOnSessionStart"
},