Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 4b896f6

Browse files
authored
support portable package
support portable package
2 parents 237f38e + 042ce48 commit 4b896f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/arduino/arduinoSettings.ts

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ export class ArduinoSettings implements IArduinoSettings {
6060
this._commandPath = "/Contents/MacOS/Arduino";
6161
}
6262
}
63+
64+
// Arduino IDE will save all packages into portable folder if it exsits.
65+
// https://github.com/Microsoft/vscode-arduino/issues/415
66+
if (!util.directoryExistsSync(this._packagePath) && util.directoryExistsSync(path.join(this._arduinoPath, "portable"))) {
67+
this._packagePath = path.join(this._arduinoPath, "portable");
68+
}
6369
}
6470

6571
public get arduinoPath(): string {

0 commit comments

Comments
 (0)