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

support portable package #501

Merged
merged 3 commits into from
Mar 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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