mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-24 03:36:37 +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 });
|
||||
if (workspaceUri && openAfterMove) {
|
||||
this.workspaceService.open(new URI(workspaceUri));
|
||||
this.workspaceService.open(new URI(workspaceUri), { preserveWindow: true });
|
||||
}
|
||||
return !!workspaceUri;
|
||||
}
|
||||
|
@ -69,16 +69,12 @@ export class VerifySketch extends SketchContribution {
|
||||
if (!boardsConfig.selectedBoard.fqbn) {
|
||||
throw new Error(`No core is installed for the '${boardsConfig.selectedBoard.name}' board. Please install the core.`);
|
||||
}
|
||||
const [data, fqbn] = await Promise.all([
|
||||
this.boardsDataStore.getData(boardsConfig.selectedBoard.fqbn),
|
||||
this.boardsDataStore.appendConfigToFqbn(boardsConfig.selectedBoard.fqbn)
|
||||
]);
|
||||
const fqbn = await this.boardsDataStore.appendConfigToFqbn(boardsConfig.selectedBoard.fqbn);
|
||||
this.outputChannelManager.getChannel('Arduino: compile').clear();
|
||||
await this.coreService.compile({
|
||||
sketchUri: uri,
|
||||
fqbn,
|
||||
optimizeForDebug: this.editorMode.compileForDebug,
|
||||
programmer: data.selectedProgrammer
|
||||
optimizeForDebug: this.editorMode.compileForDebug
|
||||
});
|
||||
this.messageService.info('Done compiling.', { timeout: 1000 });
|
||||
} catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user