mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-05 16:38:32 +00:00
Updated to Theia 1.4.0-next.a62011a5.
- Aligned the daemon test to latest `js-yaml`. - Aligned the TS version with Theia. - Resolved a dependency-cycle with `next` Theia. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -322,6 +322,12 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
||||
}
|
||||
});
|
||||
|
||||
registry.registerCommand(ArduinoCommands.OPEN_SKETCH_FILES, {
|
||||
execute: async (uri: string) => {
|
||||
this.openSketchFiles(uri);
|
||||
}
|
||||
});
|
||||
|
||||
registry.registerCommand(ArduinoCommands.SAVE_SKETCH, {
|
||||
isVisible: widget => ArduinoToolbar.is(widget) && widget.side === 'left',
|
||||
execute: (sketch: Sketch) => {
|
||||
@@ -548,7 +554,7 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
||||
});
|
||||
}
|
||||
|
||||
async openSketchFiles(uri: string): Promise<void> {
|
||||
protected async openSketchFiles(uri: string): Promise<void> {
|
||||
const uris = await this.sketchService.getSketchFiles(uri);
|
||||
for (const uri of uris) {
|
||||
await this.editorManager.open(new URI(uri));
|
||||
|
||||
Reference in New Issue
Block a user