@@ -212,19 +212,19 @@ export class UploadSketch extends SketchContribution {
212
212
// uploadInProgress will be set to false whether the upload fails or not
213
213
this . uploadInProgress = true ;
214
214
215
- // here we inform the "monitorManagerProxyClient" an upload is in progress,
216
- // setting a boolean flag, this is to prevent triggering of the
217
- // "usual side effects" if a serial port change occurs during upload
218
- // (expected on windows for some boards)
219
- this . monitorManagerProxyClient . setUploadInProgress ( true ) ;
220
-
221
215
this . onDidChangeEmitter . fire ( ) ;
222
216
const sketch = await this . sketchServiceClient . currentSketch ( ) ;
223
217
if ( ! CurrentSketch . isValid ( sketch ) ) {
224
218
return ;
225
219
}
226
220
227
221
try {
222
+ // here we inform the "monitorManagerProxyClient" an upload is in progress,
223
+ // setting a boolean flag, this is to prevent triggering of the
224
+ // "usual side effects" if a serial port change occurs during upload
225
+ // (expected on windows for some boards)
226
+ this . monitorManagerProxyClient . setUploadInProgress ( true ) ;
227
+
228
228
const { boardsConfig } = this . boardsServiceClientImpl ;
229
229
const [ fqbn , { selectedProgrammer } , verify , verbose , sourceOverride ] =
230
230
await Promise . all ( [
0 commit comments