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>
This commit is contained in:
Akos Kitta 2020-08-25 16:03:49 +02:00
parent c6ad0f582a
commit 4b44113f2c

View File

@ -324,7 +324,7 @@ void loop() {
for (let i = 0; i < files.length; i++) {
if (files[i] === basename + '.ino') {
try {
await this.loadSketch(fsPath);
await this.loadSketch(FileUri.create(fsPath).toString());
return true;
} catch { }
}