fixed save-as. added sketchload

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-07-30 19:58:14 +02:00
parent 528f4150d3
commit 8ab70f48f8
19 changed files with 360 additions and 114 deletions

View File

@@ -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.'
}
);
}