mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-26 04:36:36 +00:00
programmer was removed from compilereqSigned-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
4a9a975dca
commit
722f8d7534
@ -60,7 +60,7 @@ export class SaveAsSketch extends SketchContribution {
|
|||||||
}
|
}
|
||||||
const workspaceUri = await this.sketchService.copy(sketch, { destinationUri });
|
const workspaceUri = await this.sketchService.copy(sketch, { destinationUri });
|
||||||
if (workspaceUri && openAfterMove) {
|
if (workspaceUri && openAfterMove) {
|
||||||
this.workspaceService.open(new URI(workspaceUri));
|
this.workspaceService.open(new URI(workspaceUri), { preserveWindow: true });
|
||||||
}
|
}
|
||||||
return !!workspaceUri;
|
return !!workspaceUri;
|
||||||
}
|
}
|
||||||
|
@ -69,16 +69,12 @@ export class VerifySketch extends SketchContribution {
|
|||||||
if (!boardsConfig.selectedBoard.fqbn) {
|
if (!boardsConfig.selectedBoard.fqbn) {
|
||||||
throw new Error(`No core is installed for the '${boardsConfig.selectedBoard.name}' board. Please install the core.`);
|
throw new Error(`No core is installed for the '${boardsConfig.selectedBoard.name}' board. Please install the core.`);
|
||||||
}
|
}
|
||||||
const [data, fqbn] = await Promise.all([
|
const fqbn = await this.boardsDataStore.appendConfigToFqbn(boardsConfig.selectedBoard.fqbn);
|
||||||
this.boardsDataStore.getData(boardsConfig.selectedBoard.fqbn),
|
|
||||||
this.boardsDataStore.appendConfigToFqbn(boardsConfig.selectedBoard.fqbn)
|
|
||||||
]);
|
|
||||||
this.outputChannelManager.getChannel('Arduino: compile').clear();
|
this.outputChannelManager.getChannel('Arduino: compile').clear();
|
||||||
await this.coreService.compile({
|
await this.coreService.compile({
|
||||||
sketchUri: uri,
|
sketchUri: uri,
|
||||||
fqbn,
|
fqbn,
|
||||||
optimizeForDebug: this.editorMode.compileForDebug,
|
optimizeForDebug: this.editorMode.compileForDebug
|
||||||
programmer: data.selectedProgrammer
|
|
||||||
});
|
});
|
||||||
this.messageService.info('Done compiling.', { timeout: 1000 });
|
this.messageService.info('Done compiling.', { timeout: 1000 });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user