mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-06 08:58:32 +00:00
fixed save-as. added sketchload
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -260,13 +260,11 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
||||
}
|
||||
|
||||
protected async openSketchFiles(uri: string): Promise<void> {
|
||||
const uris = await this.sketchService.getSketchFiles(uri);
|
||||
for (const uri of uris) {
|
||||
const sketch = await this.sketchService.loadSketch(uri);
|
||||
await this.editorManager.open(new URI(sketch.mainFileUri));
|
||||
for (const uri of [...sketch.otherSketchFileUris, ...sketch.additionalFileUris]) {
|
||||
await this.editorManager.open(new URI(uri));
|
||||
}
|
||||
if (uris.length) {
|
||||
await this.editorManager.open(new URI(uris[0])); // Make sure the sketch file has the focus.
|
||||
}
|
||||
}
|
||||
|
||||
registerColors(colors: ColorRegistry): void {
|
||||
@@ -313,6 +311,24 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
||||
hc: 'activityBar.inactiveForeground'
|
||||
},
|
||||
description: 'Background color of the toolbar items when hovering over them. Such as Upload, Verify, etc.'
|
||||
},
|
||||
{
|
||||
id: 'arduino.output.background',
|
||||
defaults: {
|
||||
dark: 'editorWidget.background',
|
||||
light: 'editorWidget.background',
|
||||
hc: 'editorWidget.background'
|
||||
},
|
||||
description: 'Background color of the Output view.'
|
||||
},
|
||||
{
|
||||
id: 'arduino.output.foreground',
|
||||
defaults: {
|
||||
dark: 'editorWidget.foreground',
|
||||
light: 'editorWidget.foreground',
|
||||
hc: 'editorWidget.foreground'
|
||||
},
|
||||
description: 'Color of the text in the Output view.'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user