diff --git a/src/extension.ts b/src/extension.ts index 0370167e2..72f730cf1 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -3914,10 +3914,11 @@ const flash = ( workspaceRoot ) as ESP.FlashType; } - await startFlashing(cancelToken, flashType, encryptPartition); - OutputChannel.appendLine( - "Flash has finished. You can monitor with ESP-IDF: Monitor your device command" - ); + if (await startFlashing(cancelToken, flashType, encryptPartition)) { + OutputChannel.appendLine( + "Flash has finished. You can monitor your device with 'ESP-IDF: Monitor command'" + ); + } } ); });