mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-19 01:06:39 +00:00
* ensure compile verbose pref is included on upload * better verbose typings Signed-off-by: Akos Kitta <a.kitta@arduino.cc> Co-authored-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
5087ff08f2
commit
9373a0bcaf
@ -214,9 +214,10 @@ export class UploadSketch extends CoreServiceContribution {
|
||||
fqbn,
|
||||
{ selectedProgrammer },
|
||||
verify,
|
||||
verbose,
|
||||
uploadVerbose,
|
||||
sourceOverride,
|
||||
optimizeForDebug,
|
||||
compileVerbose,
|
||||
] = await Promise.all([
|
||||
this.boardsDataStore.appendConfigToFqbn(
|
||||
boardsConfig.selectedBoard?.fqbn
|
||||
@ -228,8 +229,10 @@ export class UploadSketch extends CoreServiceContribution {
|
||||
this.commandService.executeCommand<boolean>(
|
||||
'arduino-is-optimize-for-debug'
|
||||
),
|
||||
this.preferences.get('arduino.compile.verbose'),
|
||||
]);
|
||||
|
||||
const verbose = { compile: compileVerbose, upload: uploadVerbose };
|
||||
const board = {
|
||||
...boardsConfig.selectedBoard,
|
||||
name: boardsConfig.selectedBoard?.name || '',
|
||||
|
@ -84,11 +84,12 @@ export namespace CoreService {
|
||||
}
|
||||
|
||||
export namespace Upload {
|
||||
export interface Options extends Compile.Options {
|
||||
export interface Options extends Omit<Compile.Options, 'verbose'> {
|
||||
readonly port?: Port;
|
||||
readonly programmer?: Programmer | undefined;
|
||||
readonly verify: boolean;
|
||||
readonly userFields: BoardUserField[];
|
||||
readonly verbose: { compile: boolean; upload: boolean };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,11 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
|
||||
) => ApplicationError<number, CoreError.ErrorLocation[]>,
|
||||
task: string
|
||||
): Promise<void> {
|
||||
await this.compile(Object.assign(options, { exportBinaries: false }));
|
||||
await this.compile({
|
||||
...options,
|
||||
verbose: options.verbose.compile,
|
||||
exportBinaries: false,
|
||||
});
|
||||
|
||||
const coreClient = await this.coreClient;
|
||||
const { client, instance } = coreClient;
|
||||
@ -262,7 +266,7 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
|
||||
if (programmer) {
|
||||
request.setProgrammer(programmer.id);
|
||||
}
|
||||
request.setVerbose(options.verbose);
|
||||
request.setVerbose(options.verbose.upload);
|
||||
request.setVerify(options.verify);
|
||||
|
||||
options.userFields.forEach((e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user