Skip to content

Commit aa2bed8

Browse files
author
Akos Kitta
committed
fixed sketch opening. This was the happy path.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 3806d56 commit aa2bed8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arduino-ide-extension/src/browser/contributions/open-sketch.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ export class OpenSketch extends SketchContribution {
119119
const sketchFilePath = filePaths[0];
120120
const sketchFileUri = await this.fileSystemExt.getUri(sketchFilePath);
121121
const sketch = await this.sketchService.getSketchFolder(sketchFileUri);
122-
if (!sketch && sketchFileUri.endsWith('.ino')) {
122+
if (sketch) {
123+
return sketch;
124+
}
125+
if (sketchFileUri.endsWith('.ino')) {
123126
const name = new URI(sketchFileUri).path.name;
124127
const nameWithExt = this.labelProvider.getName(new URI(sketchFileUri));
125128
const { response } = await remote.dialog.showMessageBox({

0 commit comments

Comments
 (0)