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

Commit

Permalink
support portable package
Browse files Browse the repository at this point in the history
support portable package
  • Loading branch information
Sneezry authored Mar 22, 2018
2 parents 237f38e + 042ce48 commit 4b896f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/arduino/arduinoSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ export class ArduinoSettings implements IArduinoSettings {
this._commandPath = "/Contents/MacOS/Arduino";
}
}

// Arduino IDE will save all packages into portable folder if it exsits.
// https://github.com/Microsoft/vscode-arduino/issues/415
if (!util.directoryExistsSync(this._packagePath) && util.directoryExistsSync(path.join(this._arduinoPath, "portable"))) {
this._packagePath = path.join(this._arduinoPath, "portable");
}
}

public get arduinoPath(): string {
Expand Down

0 comments on commit 4b896f6

Please sign in to comment.