Skip to content

Commit 4b44113

Browse files
author
Akos Kitta
committed
GH-311: Fixed FS path to URI conversion issue.
Instead of passing the FS path (`string`) to the `LoadSketch` method, we have to convert it into a proper URI string. Closes arduino/arduino-pro-ide#311 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent c6ad0f5 commit 4b44113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/src/node/sketches-service-impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void loop() {
324324
for (let i = 0; i < files.length; i++) {
325325
if (files[i] === basename + '.ino') {
326326
try {
327-
await this.loadSketch(fsPath);
327+
await this.loadSketch(FileUri.create(fsPath).toString());
328328
return true;
329329
} catch { }
330330
}

0 commit comments

Comments
 (0)