[win] Open sketch.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2019-07-23 20:58:14 +02:00
parent 75f7d3ca7c
commit c0e279f3e8
3 changed files with 23 additions and 30 deletions

View File

@@ -357,11 +357,10 @@ export class ArduinoFrontendContribution implements TabBarToolbarContribution, C
async openSketchFiles(uri: string) {
const fileStat = await this.fileSystem.getFileStat(uri);
if (fileStat) {
const sketchFiles = await this.sketches.getSketchFiles(fileStat);
sketchFiles.forEach(sketchFile => {
const uri = new URI(sketchFile.uri);
this.editorManager.open(uri);
});
const uris = await this.sketches.getSketchFiles(fileStat);
for (const uri of uris) {
this.editorManager.open(new URI(uri));
}
}
}