@@ -145,7 +145,7 @@ export async function activate(context: vscode.ExtensionContext) {
145
145
location : vscode . ProgressLocation . Window ,
146
146
title : "Arduino: Uploading..." ,
147
147
} , async ( ) => {
148
- await arduinoContextModule . default . arduinoApp . upload ( BuildMode . Upload ) ;
148
+ await arduinoContextModule . default . arduinoApp . build ( BuildMode . Upload ) ;
149
149
} ) ;
150
150
} catch ( ex ) {
151
151
}
@@ -163,7 +163,7 @@ export async function activate(context: vscode.ExtensionContext) {
163
163
location : vscode . ProgressLocation . Window ,
164
164
title : "Arduino: Using CLI to upload..." ,
165
165
} , async ( ) => {
166
- await arduinoContextModule . default . arduinoApp . upload ( BuildMode . Upload , false ) ;
166
+ await arduinoContextModule . default . arduinoApp . build ( BuildMode . Upload , false ) ;
167
167
} ) ;
168
168
} catch ( ex ) {
169
169
}
@@ -198,7 +198,7 @@ export async function activate(context: vscode.ExtensionContext) {
198
198
if ( ! status . compile ) {
199
199
status . compile = "upload" ;
200
200
try {
201
- await arduinoContextModule . default . arduinoApp . upload ( BuildMode . UploadProgrammer , true ) ;
201
+ await arduinoContextModule . default . arduinoApp . build ( BuildMode . UploadProgrammer , true ) ;
202
202
} catch ( ex ) {
203
203
}
204
204
delete status . compile ;
@@ -211,7 +211,7 @@ export async function activate(context: vscode.ExtensionContext) {
211
211
if ( ! status . compile ) {
212
212
status . compile = "cliUpload" ;
213
213
try {
214
- await arduinoContextModule . default . arduinoApp . upload ( BuildMode . UploadProgrammer , false ) ;
214
+ await arduinoContextModule . default . arduinoApp . build ( BuildMode . UploadProgrammer , false ) ;
215
215
} catch ( ex ) {
216
216
}
217
217
delete status . compile ;
0 commit comments