File tree 3 files changed +12
-4
lines changed
arduino-ide-extension/src
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,10 @@ export class UploadSketch extends CoreServiceContribution {
214
214
fqbn ,
215
215
{ selectedProgrammer } ,
216
216
verify ,
217
- verbose ,
217
+ uploadVerbose ,
218
218
sourceOverride ,
219
219
optimizeForDebug ,
220
+ compileVerbose ,
220
221
] = await Promise . all ( [
221
222
this . boardsDataStore . appendConfigToFqbn (
222
223
boardsConfig . selectedBoard ?. fqbn
@@ -228,8 +229,10 @@ export class UploadSketch extends CoreServiceContribution {
228
229
this . commandService . executeCommand < boolean > (
229
230
'arduino-is-optimize-for-debug'
230
231
) ,
232
+ this . preferences . get ( 'arduino.compile.verbose' ) ,
231
233
] ) ;
232
234
235
+ const verbose = { compile : compileVerbose , upload : uploadVerbose } ;
233
236
const board = {
234
237
...boardsConfig . selectedBoard ,
235
238
name : boardsConfig . selectedBoard ?. name || '' ,
Original file line number Diff line number Diff line change @@ -84,11 +84,12 @@ export namespace CoreService {
84
84
}
85
85
86
86
export namespace Upload {
87
- export interface Options extends Compile . Options {
87
+ export interface Options extends Omit < Compile . Options , 'verbose' > {
88
88
readonly port ?: Port ;
89
89
readonly programmer ?: Programmer | undefined ;
90
90
readonly verify : boolean ;
91
91
readonly userFields : BoardUserField [ ] ;
92
+ readonly verbose : { compile : boolean ; upload : boolean } ;
92
93
}
93
94
}
94
95
Original file line number Diff line number Diff line change @@ -200,7 +200,11 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
200
200
) => ApplicationError < number , CoreError . ErrorLocation [ ] > ,
201
201
task : string
202
202
) : Promise < void > {
203
- await this . compile ( Object . assign ( options , { exportBinaries : false } ) ) ;
203
+ await this . compile ( {
204
+ ...options ,
205
+ verbose : options . verbose . compile ,
206
+ exportBinaries : false ,
207
+ } ) ;
204
208
205
209
const coreClient = await this . coreClient ;
206
210
const { client, instance } = coreClient ;
@@ -262,7 +266,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
262
266
if ( programmer ) {
263
267
request . setProgrammer ( programmer . id ) ;
264
268
}
265
- request . setVerbose ( options . verbose ) ;
269
+ request . setVerbose ( options . verbose . upload ) ;
266
270
request . setVerify ( options . verify ) ;
267
271
268
272
options . userFields . forEach ( ( e ) => {
You can’t perform that action at this time.
0 commit comments